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


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

Reply via email to