ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: FW: Can ant-projects be included in other ant-projects.
Date Fri, 25 Aug 2000 13:24:46 GMT
You might want to take a peek at the execon task.  I'm not sure if it will 
do what you want, but its worth a shot.

<execon executable="ant">
  <arg value="-buildfile " />
  <fileset dir=".">
    <include name="cb*.xml" />

Hmm... I just tried something like this, and it works if I initially call 
it like

ant -buildfile test_execon\build.xml

but it fails with a create process error if I cd into test_execon, and 
just run ant.

Sorry, but I don't have time right now to debug this.  I might later this 
afternoon.  At any rate, this might help you out.  Just remember that any 
setup you've done in the main build.xml file will be lost in the nested 
ant runs.

Glenn McAllister
Software Developer. IBM Toronto Lab, (416) 448-3805
"An approximate answer to the right question is better than the 
right answer to the wrong question." - John W. Tukey

Please respond to 
Subject:        Re: FW: Can ant-projects be included in other ant-projects.

Ian Atkin wrote:
> subprojects;-
> -use the ant task
>         - it executes another instance of ant from within ant
>         - it can pass a build.xml filepath, a default target, etc
>         - sub-ant processes inherit the properties of their parent ant
> process
> - read the docs for more info
> - good luck, i haven't used this task myself yet

I guess my examples were not so useful as an example...
As I wrote, I *do* use the ant task (and I read the docs of course). My
problem is that you need a list of subprojects and that you cannot write
something like: 'process all buildfiles you can find in directory dir'.
This would mean that you could write a main buildfile and add buildfiles
for the modules without changing the main buildfile.



Frank O. Laus
Westf. Wilhelms-Universitaet Muenster
Psychologisches Institut III
Fliednerstr. 21
48149 Muenster
Tel.: +049-251-8339959

Frank O. Laus
Ruhrstr. 19
D-48145 Muenster
Tel.: +049-251-235966

View raw message