ant-dev 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, 22 Jul 2010 19:48:40 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>

 

 

Thanks,

-Nathan


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