ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peterrei...@apache.org>
Subject Re: FW: local properties
Date Wed, 20 Oct 2004 17:33:59 GMT
Jose Alberto Fernandez wrote:

>>From: Jose Alberto Fernandez
>>
>>    
>>
>>>From: Dominique Devienne [mailto:DDevienne@lgc.com]
>>>
>>>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: dev-unsubscribe@ant.apache.org
>For additional commands, e-mail: dev-help@ant.apache.org
>
>
>
>  
>


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


Mime
View raw message