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:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to