ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murray, Mike" <...@ptc.com>
Subject RE: doing antcalls in parallel
Date Tue, 02 Oct 2007 00:04:36 GMT

    <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"/>
	  <parallel>
           <antcall target="junit"/>
           <antcall target="javadoc"/>
           <antcall target="deploy"/>
	  </parallel>
    </target> 

-----Original Message-----
From: weiji [mailto:nabbleOp@hotmail.com] 
Sent: Monday, October 01, 2007 6:39 PM
To: user@ant.apache.org
Subject: doing antcalls in parallel


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#a1299018
5
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

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


Mime
View raw message