ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.D. Fagan" <jfa...@us.dhl.com>
Subject feature suggestion -- recursive property resolution, inside-out
Date Thu, 19 Apr 2001 01:03:49 GMT
Using: Ant version 1.3 compiled on March 2 2001

Would be cool to have recursive property resolution built in to Ant tool.
It doesn't currently work with version I tested against above.  See sample
ant file below for example:

<project name="suggestion" default="anthill" basedir=".">
  <property name="name" value="foobar"/>
  <property name="dist.${name}.dir" value="dist/${name}"/>

  <target name="anthill">
    <!-- normal property resolution -->
    <echo message="name = ${name}"/>

    <!-- recursive property resolution (inside-out) -->
    <echo message="dist.${name}.dir = ${dist.${name}.dir}"/>
  </target>
</project>

Ideally, the following output is desired from "ant anthill" command on this
project:

anthill:
     [echo] name = foobar
     [echo] dist.foobar.dir = dist/foobar

Currently, this is the output I get from :

anthill:
     [echo] name = foobar
     [echo] dist.foobar.dir = ${dist.${name}.dir}

Sound like a reasonable feature?

JD


Mime
View raw message