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 2001/07/31 07:10:53 UTC
[Bug 2915] New: - unexpected property values after loading a property file
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2915
*** shadow/2915 Mon Jul 30 22:10:53 2001
--- shadow/2915.tmp.6679 Mon Jul 30 22:10:53 2001
***************
*** 0 ****
--- 1,38 ----
+ +============================================================================+
+ | unexpected property values after loading a property file |
+ +----------------------------------------------------------------------------+
+ | Bug #: 2915 Product: Ant |
+ | Status: NEW Version: Nightly build |
+ | Resolution: Platform: Other |
+ | Severity: Normal OS/Version: Other |
+ | Priority: Other Component: Core tasks |
+ +----------------------------------------------------------------------------+
+ | Assigned To: ant-dev@jakarta.apache.org |
+ | Reported By: mdub@bigfoot.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ Given these build targets:
+
+ <property name="http.port" value="999" />
+ <property file="defaults.properties" />
+
+ <target name="main">
+ <echo message="port=${http.port}" />
+ <echo message="url=${http.url}" />
+ </target>
+
+ and the following defaults.properties
+
+ http.port = 80
+ http.url = http://localhost:${http.port}
+
+ the output is as follows:
+
+ main:
+ [echo] port=999
+ [echo] url=http://localhost:80
+
+ I expect ${http.url} to be "http://localhost:999" at this point.