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] New: - resolve of properties inside of properties
Date Wed, 20 Nov 2002 06:44:58 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

           Summary: resolve of properties inside of properties
           Product: Ant
           Version: 1.5.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: marco.lehmann@web.de


It seems to me as a bug. Try the following build.xml and look for the results:
(java full version "1.4.0_01-b03")


<?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"/>
    <property name="yy-yy" value="zz-zz"/>


    <target name="test">

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

    </target>


</project>


Here are the results:


Buildfile: build.xml

test:
     [echo] yy
     [echo] zz
     [echo] zz-zz
     [echo] ${${xx}}
     [echo] ${${xx}-yy}

BUILD SUCCESSFUL
Total time: 1 second



But I think the last two lines prefixed with echo should look like this:

     [echo] zz
     [echo] zz-zz


Cheers,

Marco Lehmann

--
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