ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: local properties
Date Wed, 20 Oct 2004 12:05:22 GMT
<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}


> 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>  

or

<macrodef name="test">
  <sequential>
    <let>
      <localproperty name="prop" value="a local value"/>
      <echo>prop is ${prop}</echo>
    </let>
  </sequential>
</macrodef>  


Jan

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