Have a look at <subant> in the manual. Especially the last examples. Jan
>-----Ursprüngliche Nachricht----- >Von: Roedy Green [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 29. Juli 2005 05:48 >An: Ant Users List >Betreff: Re: how to make hierarchical build possible with ANT? > >At 19:19 7/28/2005, you wrote: >> I have to create a directory structure for a project in >which one >>dir has many sub dirs. >>now how to call build.xml of subdirectories from top level build.xml. > >I have just been experimenting with that myself. Here is what >I have done so far: > >The key in the <ant and <subant tasks. > ><?xml version="1.0"?> ><!-- compile and jar the universe using ant, does all cleans >before all compiles --> <project name="everything" >default="jar" basedir="C:\"> > ><target name="clean"> > <subant target="clean"> > <fileset dir="com/mindprod" includes="*/build.xml"/> > </subant> ></target> > ><target name="compile"> ><!-- do a few crucial J11 ones first --> <ant >antfile="com/mindprod/ledatastream/build.xml" >target="compile"></ant> <ant >antfile="com/mindprod/common11/build.xml" >target="compile"></ant> <ant >antfile="com/mindprod/csv/build.xml" target="compile"></ant> ><ant antfile="com/mindprod/go/build.xml" >target="compile"></ant> <ant >antfile="com/mindprod/hunkio/build.xml" >target="compile"></ant> <ant >antfile="com/mindprod/isbn/build.xml" target="compile"></ant> ><!-- j12 --> ><ant antfile="com/mindprod/entities/build.xml" >target="compile"></ant> <ant >antfile="com/mindprod/jtokens/build.xml" >target="compile"></ant> <ant >antfile="com/mindprod/jdisplay/build.xml" target="compile"></ant> ><!-- J15 --> ><ant antfile="com/mindprod/comparators/build.xml" >target="compile"></ant> <ant >antfile="com/mindprod/filter/build.xml" target="compile"></ant> > ><!-- the rest, repeating those done already --> > > > <subant target="compile"> > <fileset dir="com/mindprod" includes="*/build.xml"/> > </subant> ></target> > ><target name="jar" depends="compile"> > > <subant target="jar" > > <fileset dir="com/mindprod" includes="*/build.xml"/> > </subant> ></target> > ></project> > > > >Canadian Mind Products [EMAIL PROTECTED] >#327 - 964 Heywood Avenue >Victoria, BC CANADA V8V 2Y5 >http://mindprod.com >roedy green (250) 361-9093 emergency > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] For >additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]