ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Schmetzer" <...@exubero.com>
Subject Re: Zip a lot of files
Date Fri, 30 Sep 2005 09:58:05 GMT
On Fri, 30 September, 2005 10:37 am, Sven Waibel wrote:
> Hi,
>
> i have several files i want to zip.
>
> Situation:
>
> d:\test\tt1.txt
> d:\test\tt2.txt
> d:\test\tt3.txt
> d:\test\tt4.txt
> d:\test\tt5.txt
> d:\test\tt6.txt
>
> I want to get the following:
>
> d:\testing\tt1.zip
> d:\testing\tt2.zip
> d:\testing\tt3.zip
> d:\testing\tt4.zip
> d:\testing\tt5.zip
> d:\testing\tt6.zip
>
> In my build.xml i can specify one zip - filename only:
>
> <zip destfile="${testing-folder}/tt1.zip">
> 	<fileset dir="." includes="*.txt" />
> </zip>

Use <zipfileset> instead of <fileset>
http://ant.apache.org/manual/CoreTypes/zipfileset.html

-- 
Joe Schmetzer .:. Renaissance Developer .:. http://www.exubero.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message