ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey Bacon <jba...@magmic.com>
Subject Re: recursive expansion of property names
Date Sat, 26 Jun 2004 18:46:09 GMT
that only gives you a fixed number of recursive levels and doesn't allow
you to setup new proeprties dynamically that recursivly resolve.
--
Jeffrey Bacon
jbacon@magmic.com
Creative Developer
http://www.magmic.com


Xxx Yyy wrote:
> You can do it without special libraries or changes to ANT by using
> <echo> and a temporary file.
> 
> -----------
> <project default="test">
> 
> <property name="foo" value="ABC"/>
> <property name="pfoo" value="foo"/>
> 
> <target name="test">
>   <echo file="deref.properties">
> deref: $${${pfoo}}
>   </echo>
> 
>   <property file="deref.properties"/>
> </target>
> 
> </project>
> -----------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 



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


Mime
View raw message