ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xxx Yyy <ybobble-antmailingl...@yahoo.com>
Subject Re: recursive expansion of property names
Date Sat, 26 Jun 2004 13:50:04 GMT
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


Mime
View raw message