ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David McTavish <dmctav...@SANDVINE.com>
Subject RE: Ant script "dry-run" testing
Date Wed, 04 Dec 2002 20:45:39 GMT
You COULD change the way you run all of your ant scripts such that a regular
target calls the actual target that does the work as follows:

<target name="compile">
    <echo message="Compiling ${project}"/>
    <antcall target="compile.impl"/>
</target>

    <target name="compile.impl" unless="${dry.run}">
        <javac .../>
    </target>

Then call ant as follows:

ant -buildfile build.xml compile -Ddry.run=true

d.



-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com] 
Sent: Wednesday, December 04, 2002 3:39 PM
To: 'Ant Users List'
Subject: RE: Ant script "dry-run" testing


No, and no, I'm afraid. --DD

-----Original Message-----
From: Michael Cook [mailto:MLCook@aJile.com] 
Sent: Wednesday, December 04, 2002 2:35 PM
To: ant-user@jakarta.apache.org
Subject: Ant script "dry-run" testing

Is this possible?  Will it be part of Ant 2?

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message