ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peterrei...@apache.org>
Subject Re: AW: local properties
Date Wed, 20 Oct 2004 12:52:09 GMT
Jan.Materne@rzf.fin-nrw.de wrote:

><target name="example">
>  <let>
>    <localproperty name="prop" value="a local value"/>
>    <echo>prop is ${prop}</echo>
>  </let>
>  <echo>prop is ${prop}</echo>
></target>
>
>should result in?
>
>[echo] prop is a local value
>[echo] prop is ${prop}
>
>  
>
Yes.

>  
>
>>So, Task, Target, Parallel do not get changed.
>>
>>I also think that the nested localproperty for the macrodef 
>>task can be dropped initially. It would be easier to explain just one 
>>container for local properties/
>>    
>>
>
><macrodef name="test">
>  <sequential>
>    <localproperty name="prop" value="a local value"/>
>    <echo>prop is ${prop}</echo>
>  </sequential>
></macrodef>  
><test/>
><echo>prop is ${prop}</echo>
>
>result should be the same:
>
>[echo] prop is a local value
>[echo] prop is ${prop}
>
>or do you want to something like
>
><macrodef name="test">
>  <let>
>    <localproperty name="prop" value="a local value"/>
>    <echo>prop is ${prop}</echo>
>  </let>
></macrodef>
>
No

>  
>
>or
>
><macrodef name="test">
>  <sequential>
>    <let>
>      <localproperty name="prop" value="a local value"/>
>      <echo>prop is ${prop}</echo>
>    </let>
>  </sequential>
></macrodef>  
>
>
>  
>
Yes, This is the case.

Peter


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


Mime
View raw message