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 /t >-----Original Message----- >From: Fenlason, Josh [mailto:[EMAIL PROTECTED] >Sent: Thursday, April 13, 2006 4:35 PM >To: user@ant.apache.org >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. >, >Josh. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]