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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to