ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wascally Wabbit <wascallywab...@earthling.net>
Subject Re: recursive expansion of property names
Date Thu, 24 Jun 2004 23:28:00 GMT
A typo? I don't think normal property expansion recognizes
the '@'; that token is reserved for use inside macros...no?

This works fine for me:
   <property name="afN" value=".file"/>
   <echo message="'ant.file(0)': ${ant${afN}}"/>

This does not work (the recursive code doesn't handle it):
     <property name="_dot" value ="."/>
     <property name="_ant" value="ant"/>
     <property name="_file" value="file"/>
     <echo message="'ant.file(1)': ${${_ant}${_dot}${_file}}"/>

At 06:34 PM 6/24/2004, you wrote:
>well that's better.  It resolves the ${basedir} now but won't resolve 
>properties defined as so:
>
>   <property environment="env" />
>   <property file="${basedir}/@{file}" />
>
>--
>Jeffrey Bacon
>jbacon@magmic.com
>Creative Developer
>http://www.magmic.com
>
>[[ snip ]]

The Wabbit 



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


Mime
View raw message