ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robin Ziolkowski <>
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/*" />

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.

Access Server Development Team  < >
  _/MCIWorldcom Site Controller Development _/ <>


View raw message