ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "RADEMAKERS Tanguy" <>
Subject RE: Unzip Question
Date Thu, 13 Apr 2006 14:48:54 GMT
Hello Josh,

It's a two step process:

1) extract the .js files from the archive to a temp location using the
<unzip> task with a nested <patternset>
2) use the <copy> task with a nested <flattenmapper/> to copy the js
files from the temp location to a new destination



>-----Original Message-----
>From: Fenlason, Josh [] 
>Sent: Thursday, April 13, 2006 4:35 PM
>Subject: Unzip Question
>I'm trying to extract only js files from a zip file and not retain the
>folder structure from the zip file.  
>For example the zip file might look like this:
>    /foo/bar/test.js
>    /foo/test2.js
>I want to extract so they come out like this:
>    C:\test\test.js
>    C:\test\test2.js
>Hope that make sense.
>Is that possible?  The "Mapping File Names" section sounds promising,
>but I'm a bit confused about how to use it.  It its not possible to do
>this with the unzip task.  Is there a way to do it if I extracted to a
>temp file?  Thanks in advance.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message