Zipfileset works with jars also, I don't know if there is a reason not to use it with them though. The prefix attribute allows you to change the path for the files of the fileset in the archive. http://ant.apache.org/manual/CoreTypes/zipfileset.html
-Barry -----Original Message----- From: Tom Corcoran [mailto:[EMAIL PROTECTED] Sent: Monday, May 19, 2008 11:29 AM To: user@ant.apache.org Subject: Strip directory from fileset includesfile jar location Doing the following creates a sub directory properties in my jar with my groovy property files, as desired: <jar destfile="${jar.dir}/${jar.name}.jar" update="no" basedir="${classes.dir}"> <fileset dir="."><include name="**/properties/*.groovy" /></fileset> </jar> However, I have a log4j.properties file which is also located in this the properties directory on my _file system_ but I want it in the root level of the jar (so it can be found in the path) and not in the properties directory. how can I do that? -- View this message in context: http://www.nabble.com/Strip-directory-from-fileset-includesfile-jar-loca tion-tp17322626p17322626.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ----------------------------------------- Confidentiality Notice! This electronic transmission and any attached documents or other writings are confidential and are for the sole use of the intended recipient(s) identified above. This message may contain information that is privileged, confidential or otherwise protected from disclosure under applicable law. If the receiver of this information is not the intended recipient, or the employee, or agent responsible for delivering the information to the intended recipient, you are hereby notified that any use, reading, dissemination, distribution, copying or storage of this information is strictly prohibited. If you have received this information in error, please notify the sender by return email and delete the electronic transmission, including all attachments from your system. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]