I am new to ant, and am setting up a master build.xml. There are several projects (each with build.xml) that the master will build, and there is a dependency chain so that they must be built in a specific order. All of the subant examples that I find use dirset which does not allow control of the build order. I have hacked a working build.xml, but I will add multiple targets, and I do not want to copy/paste the hack. What I want to do is to define the collection of project folders outside of the subant block, and then use that collection with subant. See my current hack below. <project name="master"> <target name="all"> <subant> <target name="build"/> <target name="publish"/> <fileset dir="./Proj1Folder" includes="build.xml"/> <fileset dir="./Proj2Folder" includes="build.xml"/> <fileset dir="./Proj31Folder" includes="build.xml"/> <fileset dir="./Proj4Folder" includes="build.xml"/> </subant> </target> </project> -- View this message in context: http://old.nabble.com/using-subant-with-multiple-projects-with-specific-build-order-tp28771184p28771184.html Sent from the Ant - Dev mailing list archive at Nabble.com.