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 25169] New: - Property file specified from command line doesn't expand all properties
Date Wed, 03 Dec 2003 17:32:14 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=25169>.
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=25169

Property file specified from command line doesn't expand all properties

           Summary: Property file specified from command line doesn't expand
                    all properties
           Product: Ant
           Version: 1.5.4
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other
        AssignedTo: dev@ant.apache.org
        ReportedBy: tompa@comcast.net


Apache Ant version 1.5.4 compiled on August 12 2003
Red Hat Linux, J2SE 1.4

Consider following build.properties file:
base.path=/usr/local
base.file=${base.path}/abc.txt

and build.xml:
<project name="Test" default="dflt">
<property  file="build.properties"/>
<property name="xyz" value="${base.file}"/>
    <target name="dflt">
        <echo message="test message: ${xyz}"/>
    </target>
</project>

${xyz} is printed correctly as /usr/local//abc.txt

Now remove <property  file="build.properties"/> from buil.xml and run:
ant -propertyfile build.properties

${xyz} is now printed as
${base.path}/abc.txt

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


Mime
View raw message