ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burgess, Benjamin" <BBurg...@tiaa-cref.org>
Subject RE: jar properties
Date Fri, 26 May 2006 15:21:06 GMT
Try:

	 <target name="firstjar" depends="manifest">
		 <jar jarfile="${jars.project}" >
			<fileset refid="files.sweethome.class" />
			<fileset file="sweethome.properties" />
		 </jar>
	 </target>
	 <target name="deploy" depends="firstjar" />

Ben

-----Original Message-----
From: Labhard, Michael E [mailto:michael.e.labhard@intel.com] 
Sent: Friday, May 26, 2006 11:15 AM
To: user@ant.apache.org
Subject: 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>


Result:

...
      [jar] adding entry
com/intel/research/sweethome/webserver/map/IOVarDisplay.class
      [jar] adding entry
com/intel/research/sweethome/webserver/map/NullImageObserver.class

deploy:

compile-camp:
...

Any ideas?

-- Michael



**************************************************************
This message, including any attachments, contains confidential information intended for a
specific individual and purpose, and is protected by law.  If you are not the intended recipient,
please contact sender immediately by reply e-mail and destroy all copies.  You are hereby
notified that any disclosure, copying, or distribution of this message, or the taking of any
action based on it, is strictly prohibited.
TIAA-CREF
**************************************************************


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


Mime
View raw message