Bug 25169 - Property file specified from command line doesn't expand all properties
Summary: Property file specified from command line doesn't expand all properties
Status: RESOLVED DUPLICATE of bug 23404
Alias: None
Product: Ant
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.5.4
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-03 17:32 UTC by Tompa
Modified: 2008-02-22 12:18 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tompa 2003-12-03 17:32:13 UTC
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
Comment 1 Jan Mat 2003-12-09 11:22:35 UTC

*** This bug has been marked as a duplicate of 23404 ***