ant-user mailing list archives

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

Hi,

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
testing">
        <antcall target="-init"/>
        <antcall target="clean"/>
        <antcall target="javac"/>
        <antcall target="javac-tests"/>
        <antcall target="junit"/>
        <antcall target="javadoc"/>
        <antcall target="deploy"/>
    </target>

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.

Thanks,
KaJun
-- 
View this message in context: http://www.nabble.com/doing-antcalls-in-parallel-tf4551983.html#a12990185
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message