Sometime in 2001 we were all discussing recursive property expansion:

<project default="all">
  <target name="all">
    <property name="foo" value="woof"/>
    <property name="bar" value="arf"/>
    <property name="woof.arf" value="It works!"/>
    <echo> ${${foo}.${bar}} </echo>
  </target>
</project>

This would echo "It works!" with recursive expansion. In 1.7.0RC1
it echoes ${${foo}.arf} .

I submitted a patch once or twice that would make this work and
everyone seemed to nod very seriously over it :-) But five years
later Ant properties still don't expand recursively.

I've got macros that do this, but still, doesn't recursive expansion
just fit Ant perfectly? Is there anyone who has ever used Ant who
didn't expect properties to work that way until they found out
that they don't?

--
Jack J. Woehr
Director of Development
Absolute Performance, Inc.
[EMAIL PROTECTED]
303-443-7000 ext. 527



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to