ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Labhard, Michael E" <michael.e.labh...@intel.com>
Subject RE: jar properties
Date Fri, 26 May 2006 15:59:04 GMT
This works.  Thank you.

-- Michael
-----Original Message-----
From: Antoine Levy-Lambert [mailto:antoine@gmx.de] 
Sent: Friday, May 26, 2006 8:22 AM
To: Ant Users List
Subject: Re: jar properties

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

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


Mime
View raw message