ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14698] - resolve of properties inside of properties
Date Thu, 21 Nov 2002 07:45:53 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14698>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14698

resolve of properties inside of properties





------- Additional Comments From marco.lehmann@web.de  2002-11-21 07:45 -------
Please explain me the following results, because I don't understand what ant is 
doing here.

Here is the build.xml:

<?xml version="1.0" encoding="iso-8859-1"?>
<project name="var-test" default="test" basedir=".">


    <property name="xx" value="yy"/>
    <property name="yy" value="zz"/>

    <target name="test">

	<echo message="${${xx}-${xx}}"/>

    </target>


</project>


If ant wouldn't resolve properties recursively the result should be this:

     [echo] ${${xx}-${xx}}

but it is:

     [echo] ${${xx}-yy}

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message