ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Klaus Malorny <>
Subject Re: AW: AW: extended parallelism
Date Wed, 19 Dec 2007 18:29:16 GMT wrote:

> Usually tasks have to be processed sequentially.
>    <mkdir dir="${classes}"/>
>    <javac todir="${classes}".../>
>    <tstamp/>
>    <jar destfile="${}-${dstamp}.jar" .../>
> Jan

Sure, but you can regard the body of a target as having an implicit <sequential> 


<target name="a">

<target name="b">

<target name="c" depends="a, b">

you'll get the following dependencies among the _tasks_:

taska1: -none-
taska2: taska1
taska3: taska2

taskb1: -none-
taskb2: taskb1
taskb3: taskb1

taskc1: taska3, taskb2, taskb3
taskc2: taskc1

For example, if you limit the number of concurrently executed threads to 2, and 
assume that taska1 takes much longer than whole target "b", then taskb2 and 
taskb3 would not run concurrently, as otherwise the total number of running 
threads would exceed. I hope that this makes my point clearer.


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

View raw message