ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien Blanc <>
Subject Re: local build file with ant
Date Sun, 23 Mar 2003 07:09:12 GMT
Hi Ray !
here follows a sample of build.xml that makes <ant> recursive calls to clean the
sub packages:
    <target name="clean">
        <echo message="Cleaning all: reverting back to source distribution..." />
        <ant dir="${basedir}/core" target="clean"/>
        <ant dir="${basedir}/modules" target="clean"/>
        <ant dir="${basedir}/samples" target="clean"/>
        <delete dir="${dist.dir}"/>
            <fileset dir="." includes="**/velocity.log*"/>
            <fileset dir="." includes="**/maven.log*"/>
the same can be done for compilation or any other task, for instance the main one:
    <target name="main">
        <ant dir="${basedir}/core" target="main"/>
        <ant dir="${basedir}/modules" target="main"/>
        <ant dir="${basedir}/samples" target="main"/>
this is documented here in the ANT core tasks:


View raw message