You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/11/20 07:44:58 UTC
DO NOT REPLY [Bug 14698] New: -
resolve of properties inside of properties
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>