ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alejandro Abdelnur <alejandro.abdel...@sun.com>
Subject embedded (or nested) properties
Date Sat, 01 Sep 2001 23:41:47 GMT
hi folks,

in a previous email i've suggested an enhancement to the property task,
adding an "eval" attribute to do resolve property names on the fly.

somebody (stephane baillez) replied asking if what i meant was nested
properties evaluation, yeap that was what i was after.

i've modified the replaceProperties method from the
org.apache.tools.antProjectHelper class of Ant1.4B2 to support nested
evaluation.

for example:

        <property name="a" value="A"/>
        <property name="c" value="C"/>
        <property name="bC" value="BC"/>
        <property name="aBC" value="ABC"/>

        <echo message="${a${b${c}}}"/>

resolves to "ABC"


interested in integrating this into ant's code base ?


i'm not familiar with the dynamic of this alias (just joined last week).
i've already sent an email with some suggestions for enhancements, a couple
of you replied but not closure was given to it.

is there any proposal process i'm not aware of ?

thxs and regards.

a



Mime
View raw message