ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vijay Aravamudhan <>
Subject Re: Repeating a task for a list of directories
Date Wed, 05 Mar 2008 19:14:28 GMT
if all you are doing is calling a different ant file within each 
subdirectory - you can look at subant 

If your main build file has a target which you want to repeat for each 
subdirectory, use ant-contrib's for or foreach tasks 
With the ant-contrib option, you will have access to a property that you 
can define which contains the directory name.


Rob Wilson wrote:
> 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.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message