Yes. Use a <zipfileset> subtask to specify what files you want in your Zipfile.
<zip destfile="${zipfile}"> <zipfileset dir="B" includes="file.xy"/> <zipfileset dir="A" includes="*"/> </zip> On Nov 16, 2007 6:47 AM, Roman Agapkin <[EMAIL PROTECTED]> wrote: > Hello Experts, > > i've got a question on ant's zip task: > > i would like to create a zip file: > > take file file.xy from folder A and put them into the zip file into a > new folder B/file.xy > is that possible? > > or another problem: > i would like to zip a subtree > e.g. i've got a path A/B/C/D/file.xy > i want B/C/D/file.xy to add in the zip file > i that possible? > > best regards > roman > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- -- David Weintraub [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]