Rohit P wrote:
Hi,
I just now had a chance to look into <parallel> ant task. I would definitely
start working on it and make good use of it in my time-consuming build
scripts. To know it still better wanted to have a look into few examples
that use this task.
I guess most of them have come over this ant task and also used it.
It would be great if anybody can share me some examples on this task or
provide me a link [other than ant manual] where i can see some examples that
use this task.
Thanks A Ton
Rohit
Here's one from our test code; most of the things it starts are custom
tasks aa
<target name="testIncompatibleProcessAllow" depends="setup">
<parallel>
<sf-startdaemon>
<sysproperty
key="org.smartfrog.sfcore.processcompound.sfProcessAllow" value="12"/>
<application name="failToSpawn">
#include "/org/smartfrog/components.sf"
sfConfig extends Compound {
sfProcessName "newProcessName";
}
</application>
</sf-startdaemon>
<sequential>
<waitfor maxwait="10" maxwaitunit="second"
checkevery="1" checkeveryunit="second"
timeoutproperty="block.timeout">
<socket server="localhost" port="${smartfrog.daemon.port}"/>
</waitfor>
<sleep milliseconds="${short.delay}"/>
<sf-stopdaemon failonerror="false"/>
</sequential>
</parallel>
</target>
It starts an application in one parallel (custom task running <java>),
then spins for a bit until a port goes live, waits a short moment and
then shuts down the application.
Be careful about using lots of ant tasks (especially third party tasks)
in a <parallel> as they may not be thread safe. ant core is mostly
locked down, but you are on your own with other people's code
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]