ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juergen Hermann" ...@web.de>
Subject Re: indirect property evaluation
Date Wed, 19 Oct 2005 21:03:45 GMT
On Wed, 19 Oct 2005 12:31:18 -0700, Alexey N. Solofnenko wrote:

>A simple <scriptdef> can do that.

Builtins can do it, too:
     [echo] testfw.db.system = Solid

>>> build.properties:

db.system=solid

# ------------------- for Solid ----------------
testfw.solid.system=Solid

testfw.db.system=${testfw.${db.system}.system}

>>> build.xml:

        <property name="dollar" value="$"/>
        <copy file="build.properties" tofile="build.properties.tmp">
            <filterset begintoken="${dollar}{" endtoken="}">
                <filtersfile file="build.properties"/>
            </filterset>
        </copy>
        <property file="build.properties.tmp"/>

        <echo message="testfw.db.system = ${testfw.db.system}"/>





Ciao, J├╝rgen



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


Mime
View raw message