ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@gmail.com>
Subject Re: Atomic/Synchronized Task
Date Thu, 24 Jun 2010 21:24:11 GMT

On Jun 24, 2010, at 4:04 PM, Perrier, Nathan wrote:

> Hello all,
> 
> 
> 
> I was curious if there exists a means to atomically execute tasks when
> running targets in parallel.
> 

<sequential> ?

-Matt

> 
> 
> I.E., I would like to do something like the following:
> 
> 
> 
> <target name="begin">
> 
>                <parallel>
> 
>                                <antcall target="one"/>
> 
>                                <antcall target="two"/>
> 
>                </parallel>
> 
> </target>
> 
> 
> 
> <target name="one">
> 
> ...
> 
>                Do something in parallel
> 
> ...
> 
>                <synchronized>
> 
> ...
> 
>                                Do something atomically
> 
> ...
> 
>                </synchronized>
> 
> ...
> 
> </target>
> 
> 
> 
> <target name="two">
> 
> ...
> 
>                Do something in parallel
> 
> ...
> 
>                <synchronized>
> 
> ...
> 
>                                Do something atomically
> 
> ...
> 
>                </synchronized>
> 
> ...
> 
> </target>
> 
> 
> 


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


Mime
View raw message