ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Schmitt" <sschm...@raleigh.ibm.com>
Subject Re: Recursive build
Date Thu, 30 Nov 2000 07:04:26 GMT
IMHO you should use the <ant> task in the upper directory. This will look
like the following XMl code. I wrote it directly in the mail so I didn`t
check the syntax.

<project name="MyProj" default="build" basedir=".">
    <property name="subdirB" value="subB"/>
    <property name="subdirC" value="subC"/>
    <target name="build" depends="buildB,buildC"/>
    <target name="buildB">
        <ant antfile="${subdirB}/build.xml" dir="${subdirB}"/>
    </target>
    <target name="buildC">
        <ant antfile="${subdirC}/build.xml" dir="${subdirC}"/>
    </target>
</project>

For aditional questions about the syntax of Ant take a look at the online
user manual at http://jakarta.apache.org/ant/jakarta-ant/docs/

Yours
Stefan S


Mime
View raw message