ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <anto...@gmx.de>
Subject Re: jar properties
Date Fri, 26 May 2006 15:22:27 GMT
Hello Michael,
I think that what you want is :
 		 <jar jarfile="${jars.project}" update="true"
                     <fileset dir=".">
 		 	 <include name="sweethome.properties" >
                     </fileset> 

 		 </jar>
this is assuming that sweethome.properties is generated in the basedirectory of your Ant project
(the same directory as the build file
unless you have put something different in the attribute basedir of the project tag).

the includesfile is meant to be a file listing entries which you
want to add.

Regards,

Antoine

> -------- Original-Nachricht --------
> Datum: Fri, 26 May 2006 08:14:32 -0700
> Von: Labhard, Michael E <michael.e.labhard@intel.com>
> An: <user@ant.apache.org>
> Betreff: jar properties
> 
> Unable to add a properties file to a jar file.  Ant task:
> 
> 	 <target name="firstjar" depends="manifest">
> 		 <jar jarfile="${jars.project}" >
> 			<fileset refid="files.sweethome.class" />
> 		 </jar>
> 	 </target>
> 	 <target name="deploy" depends="firstjar">
> 		 <jar jarfile="${jars.project}" update="true" 
> 		 	includesfile="sweethome.properties" >
> 		 </jar>
> 	 </target>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message