You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by "Perrier, Nathan" <np...@ptc.com> on 2010/07/22 21:48:40 UTC
Atomic/Synchronized Task
Hello All,
I was curious if there exists a means to atomically execute tasks when
running targets in parallel.
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>
Thanks,
-Nathan