ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <levylamb...@tiscali-dsl.de>
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 http://sourceforge.net/projects/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.
Antoine
----- Original Message -----
From: "Dick Cowan" <rm.cowan@verizon.net>
To: <user@ant.apache.org>
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
these
> sub-directories and this works fine. The problem with this approach is
that
> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>


Mime
View raw message