A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
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 Java) 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.
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Recursively iterate folders with Ant
Ant copy files by reading property file
Creating XML from folder
Zip file creation with directory suppression through an API
Trying to execute java program which is in jar file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013