Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Repeating a task for a list of directories

Rob Wilson

2008-03-05

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

I have not done too much with Ant, but I would like to find all
sub-directories below a given directory and then for each directory repeat a
task in the context of that directory, so for example

topdir
 subdir1
 subdir2

I would like to get ant to repeat a task for subdir1 and subdir2 and have
access to the directory name within the task - does anyone know how I can
achieve this?

Cheers,
Rob.
©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.