ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craeg Strong" <>
Subject RE: Dynamic compilation
Date Tue, 13 Jul 2004 01:19:44 GMT
Have a look at xmltask(1)

In particular, see the example where a target can be called for each
node matching a particular xpath expression in an XML file.  

Then you simply have to create an XML file with an entry for each build
file.  This can be done easily again via xmltask dynamically generating
a node for each file in a fileset of buildfiles.

There are doubtless other ways of doing this, but this one happened to
come to mind.

Hope this helps,



> -----Original Message-----
> From: alan []
> Sent: Monday, July 12, 2004 9:11 PM
> To: 'Ant Users List'
> Subject: Dynamic compilation
> Does anyone know if it's possible to have a central build file call
> dynamically to whatever slave build files it can find under it's
> directory.
> Our project consists of many modules that are frequently added to.
> has
> it's own build file.  These all have the same targets and are all
> minibuild.xml.
> We then have a central build file that calls out to these slave files
> builds each of them.
> What I'd like to be able to do is avoid the need to edit the central
> when a new module is added to the project.  The default case would be
> developer would just put the standard minibuild.xml file in the root
> directory of their module and the regular build process would pick it
> and
> run the relevant target (clean, build, etc.).
> Does anyone know how this might be achieved.  If possible without
> resorting
> to writing custom build files.
> Grateful for any pointers...
> alan
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message