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 52621] New: Property expansion broken in macrodef
Date Wed, 08 Feb 2012 03:18:54 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52621

             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
        AssignedTo: notifications@ant.apache.org
        ReportedBy: jglick@netbeans.org
    Classification: Unclassified


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

<macrodef name="metaproperty">
    <attribute name="name"/>
    <attribute name="value"/>
    <sequential>
        <property name="@{name}" value="${@{value}}"/>
    </sequential>
</macrodef>
<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}"/>
<echo>${thing}</echo>

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: 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