https://issues.apache.org/bugzilla/show_bug.cgi?id=54769
Bug ID: 54769
Summary: Properties are not set correctly when reading from a
file with prefix.
Product: Ant
Version: 1.8.3
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Created attachment 30119
--> https://issues.apache.org/bugzilla/attachment.cgi?id=30119&action=edit
An archive containing testing files as long a a patch (which might be only
partial)
Inconsistency in property setting when using prefix.
1) create a property files containing properties that depends on each other
like, for example:
a=A
b=${a}
2) Try to set property from this file with a prefix:
<project default="test">
<target name="test">
<property name="test.a" value="test.a" />
<property file="build.properties" prefix="test" prefixValues="false" />
<echo>test.a = ${test.a}</echo>
<echo>test.b = ${test.b}</echo>
</target>
</project>
3) The values are not what they should be. Here, test.b should be equals to
${a}. Here is the obtained output:
test:
[echo] test.a = test.a
[echo] test.b = A
--
You are receiving this mail because:
You are the assignee for the bug.