ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From weiji <>
Subject doing antcalls in parallel
Date Mon, 01 Oct 2007 23:39:05 GMT


I have a few targets set up related to handling Java code.  After the code
is compiled, I run JUnit tests and generate Javadocs.  Kudos to "Ant in
Action" with the very handy junitreport setup.  My question is whether it
would be possible to run the targets in parallel, since I have a few targets
that don't depend on each other and can take a large amount of time.

My target looks like this: (the test cases are compiled separately, for now)

    <target name="allJ" description="Do full build of java sources, docs and
        <antcall target="-init"/>
        <antcall target="clean"/>
        <antcall target="javac"/>
        <antcall target="javac-tests"/>
        <antcall target="junit"/>
        <antcall target="javadoc"/>
        <antcall target="deploy"/>

We are doing daily interim builds on an early alpha webapp and don't expect
all tests to pass.  Thus the "deploy" target can occur after "javac", and it
involves zipping up a large war file and transferring it to a staging
server.  We'd like to have this occur in parallel with the unit testing and
javadoc generation.

Any suggestions are appreciated.

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message