A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Ant, Maven and Other Build Tools
Recursively iterate folders with Ant
Joined: Aug 22, 2001
Apr 08, 2005 15:51:00
I am wondering if this is possible to do in
. I want do produce a zip file for each directory that I encounter under an umbrella directory by going through all the folders under the umbrella folder recursively. e.g.
If I have the following structure:
With the above structure, I want to produce ABC.zip (which includes file1 and file2) and DEF.zip (which includes file3 and file4). Can this be done? Thanks a lot in advance.
Joined: Jun 25, 2001
Apr 13, 2005 09:41:00
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Jan 23, 2002
Apr 14, 2005 01:59:00
I wrote an
on scripting Ant builds a while back. That might be of interest to you.
Having said that, I believe "the Ant way" to do something like what you're describing would be to write a custom Ant task (in
) instead of embedding code in a scripting language.
Effective Unit Testing
Joined: Oct 10, 2000
Apr 14, 2005 08:35:00
You could try using the
We don't use them on a regular basic, but a while back I seem to recall trying it out and it did what I wanted. Then I decided I didn't really need it.
Joined: Oct 31, 2012
Dec 22, 2013 21:07:04
for /d %%j in (C:\Users\conor2\Desktop\JAVANE~1\NEURAL~1\*.) do c:\users\cono
subject: Recursively iterate folders with Ant
Creating XML from folder
Ant copy files by reading property file
Trying to execute java program which is in jar file
Zip file creation with directory suppression through an API
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015