ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49588] New: toString does not properly initialize resource collection
Date Mon, 12 Jul 2010 21:28:40 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49588

           Summary: toString does not properly initialize resource
                    collection
           Product: Ant
           Version: 1.8.1
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: dhilbert@gmx.de


Running the following build file against ant

<project default="ant-test">
  <target name="ant-test" >
    <resources id="A">
        <string value="a"/>
        <string value="b"/>
    </resources>
    <union id="union"><resources refid="A"/></union>
    <echo>
      A:     ${toString:A}           = a;b
      union: ${toString:union}           = a;b
      A:     ${toString:A}           = a;b
    </echo>
  </target>
</project>


produces the output

ant-test:
     [echo]
     [echo]       A:                = a;b
     [echo]       union: a;b           = a;b
     [echo]       A:     a;b           = a;b
     [echo]


Note the missing "a;b" after the first "A:".

The bug has been discussed on "user@ant.apache.org" under the topic "Strange
"toString"-behaviour on string resources".

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message