File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes ant build Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant build" Watch "ant build" New topic

ant build

bondada urs

Joined: Sep 30, 2005
Posts: 2
Hi everybody,

i am new bie to ant build tool. i have requirement about iterating over directory.

how to iterate over directory through ant build script.

thanks in advance

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
iterating over directory

Doing what?
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Check out antcontrib (, it contains <for> and <foreach> tasks.

But a description of why you want to iterate over a directory might help - perhaps there is a better way of doing what you want to accomplish.

JBoss In Action
I agree. Here's the link:
subject: ant build
It's not a secret anymore!