ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robin Ziolkowski <c-robin.ziolkow...@wcom.com>
Subject Creating Jar file help
Date Sat, 31 Mar 2001 00:13:01 GMT
I am having some difficulty in getting everything I want to go into a
distribution .jar file.  Below is the target that creates the jar file:

  <target name="dist" depends="compileMain">
    <!-- Create the distribution directory -->
    <mkdir dir="${dist}/lib"/>

    <!-- Put everything in ${build} into the MyDirector-${DSTAMP}.jar file -->
<!--    <jar jarfile="${src}/bin/MyDirector-${DSTAMP}.jar"
asedir="${build}"/>  -->
    <jar jarfile="${src}/bin/MyDirector-${DSTAMP}.jar" >
     <fileset dir="${build}" >
      <patternset id="director.files.dist" >
	  	<include name="**/*.class" />
	  	<include name="${src}/lib/*.jar" />
	  	<include name="${src}/images/*" />
	  	<include name="${src}/resources/*" />
	  </patternset>
	 </fileset>
	</jar>
  </target>

I find that everything from the "build" directory gets put the jar file but none
of the images, etc. from the "src" directory are included.  Can anyone tell me
what I am doing wrong.

Regards,
Robin
voice:719.535.6928
email: robin.ziolkowski@wcom.com
Access Server Development Team  < http://accessserverdev.wcomnet.com >
  _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
  _/MCIWorldcom Site Controller Development _/ < http://scdev.mcit.com>
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

 



Mime
View raw message