ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perrier, Nathan" <nperr...@ptc.com>
Subject Atomic/Synchronized Task
Date Thu, 24 Jun 2010 21:04:46 GMT
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>

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message