ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wray, Nathan" <>
Subject RE: Running parallel targets in Ant loop
Date Wed, 11 Nov 2009 13:02:59 GMT
Harry, put the parallel inside the sequential.  They aren't a pair where
you would choose one or the other.  The sequential task has hooks that
let the loop structure set the variable for you.  Inside sequential, you
can access idx as @{idx} rather than the more usual ${idx}


The contents of this e-mail are intended for the named addressee only. It contains information
that may be confidential. Unless you are the named addressee or an authorized designee, you
may not copy or use it, or disclose it to anyone else. If you received it in error please
notify us immediately and then destroy it.

From: Harry_ [] 
Sent: Tuesday, November 10, 2009 7:46 PM
Subject: Running parallel targets in Ant loop


I need to run multiple target in Ant's loop. How can I achieve this. I
able to make antcall in sequential way as described below. 

    <target name="run">
    		<for begin="1" end="2"  param="idx"> 
	           <antcall target="run-test">

But I need to do performance testing where i need to call multiple
with various values of idx.  If I change sequential to parallel, i get
following error:

C:\Eclipse3.1\eclipse\Workspace\AntProject\d6\build.xml:53: Invalid type
class used in For task, it does
have a public iterator method

Is there any way to achieve what I desire. i.e running parallel targets
different value of idx (As sometime I had to run multiple targets
up to 30).
View this message in context:
Sent from the Ant - Users mailing list archive at

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

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

View raw message