ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54769] New: Properties are not set correctly when reading from a file with prefix.
Date Fri, 29 Mar 2013 14:05:43 GMT
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: notifications@ant.apache.org
          Reporter: nicolas.cenerario@gmail.com
    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.

Mime
View raw message