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: [email protected]
ReportedBy: [email protected]
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.