ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <>
Subject Re: Ant sub builds
Date Sat, 19 Apr 2003 18:37:25 GMT
On ant-contrib there is a foreach task which I understand can iterate on the
files of a fileset.
Here is the URL of ant-contrib
The other solution I can think of would be to manage this layer [iteration
over the build.xml files in a directory tree ] with a shell script instead
of ant.
----- Original Message -----
From: "Dick Cowan" <>
To: <>
Sent: Saturday, April 19, 2003 8:11 PM
Subject: Ant sub builds

> I have a build.xml script in directory A. Under A is a directory B which
> may contain zero or more directories which correspond to independent
> contributed code. Under each of these contribution directories is a
> build.xml script. Currently I'm using an explicit ant task on each of
> sub-directories and this works fine. The problem with this approach is
> for each newly added contribution I need to add another ant task to the
> main build script.
> What I'd really like to do is drive an task using apply with a fileset but
> can't figure out how to do this?
> I used apply with a fileset and a depth of 1 to discover all the proper
> build.xml files. I fiddled with setting ant as the value of the executable
> but then needed to be able to pass just the directory name where the
> build.xml file was found by the fileset and this got ugly.
> There is probably a really simple solution.
> Any hints?
> Thanks,
> Dick
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message