ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 52621] New: Property expansion broken in macrodef
Date Wed, 08 Feb 2012 03:18:54 GMT

             Bug #: 52621
           Summary: Property expansion broken in macrodef
           Product: Ant
           Version: 1.8.3
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Core tasks
    Classification: Unclassified

After the fix of bug #42046, the following does not work:

<macrodef name="metaproperty">
    <attribute name="name"/>
    <attribute name="value"/>
        <property name="@{name}" value="${@{value}}"/>
<property name="choice" value="2"/>
<property name="thing.1" value="one"/>
<property name="thing.2" value="two"/>
<property name="thing.3" value="three"/>
<metaproperty name="thing" value="thing.${choice}"/>

1.8.2 prints "two" as expected; 1.8.3 prints "${thing.${choice}}" after the
verbose-level message "Property "thing.${choice" has not been set".

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message