ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Weintraub" <qazw...@gmail.com>
Subject Re: problems with zip task
Date Fri, 16 Nov 2007 17:16:28 GMT
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 <roman.agapkin@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


Mime
View raw message