You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Roman Agapkin <ro...@swipe.de> on 2007/11/16 12:47:44 UTC
problems with zip task
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: problems with zip task
Posted by David Weintraub <qa...@gmail.com>.
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 <ro...@swipe.de> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
--
--
David Weintraub
qazwart@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org