This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant build" Watch "ant build" New topic
Author

ant build

bondada urs
Greenhorn

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

narayana
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41073
    
  43
iterating over directory

Doing what?


Ping & DNS - my free Android networking tools app
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Check out antcontrib (http://ant-contrib.sourceforge.net/), 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ant build
 
Similar Threads
Can I debug in IDEA using ant to build?
JBoss Seam Failing With "Could not instantiate Seam component: entityManagerFactory"
Eclipse debug setting
Ant primer?
What to do with edited servlet.