Jose Alberto Fernandez wrote:
From: Jose Alberto Fernandez
From: Dominique Devienne [mailto:[EMAIL PROTECTED]
Dealing with <parallel> would be tricky, but I think we
*should* break BC by not allowing the different 'threads' of
a <parallel> to share properties, at least unless explicitly
requested.
So what do you do about <waitfor/> ? It is there for a reason.
Or more specifically:
<localproperty name="macrolocal"/>
<parallel>
<waitfor>
<isset property="macrolocal"/>
</waitfor>
<property name="macrolocal" value="1"/>
</parallel>
This is absolutely valid code today. Shall it stay in an infinite wait?
This works fine with the not released patch:
<target name="d3">
<let>
<localproperty name="macrolocal"/>
<parallel>
<sequential>
<waitfor>
<isset property="macrolocal"/>
</waitfor>
<echo>The macrolocal is ${macrolocal}</echo>
</sequential>
<sequential>
<sleep seconds="1"/>
<property name="macrolocal" value="1"/>
</sequential>
</parallel>
</let>
</target>
outputs:
d3:
[echo] The macrolocal is 1
Peter
Jose Alberto
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]