This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 98393

Summary: Support recursive property substitutions in <property>
Product: projects Reporter: Jesse Glick <jglick>
Component: Ant FreeformAssignee: Jesse Glick <jglick>
Status: RESOLVED WONTFIX    
Severity: blocker CC: db1959
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Jesse Glick 2007-03-20 20:20:51 UTC
Mimic the effect of using recursive property substitution. E.g. this Ant setup code:

<macrodef name="substproperty">
    <attribute name="name"/>
    <attribute name="value"/>
    <sequential>
        <property name="@{name}" value="${@{value}}"/>
    </sequential>
</macrodef>
<property name="val-first" value="#1"/>
<property name="val-second" value="#2"/>
<property name="switch" value="first"/>
<substproperty name="derived" value="val-${switch}"/>

sets derived=#1. Would like something like this project.xml snippet to do the
same (assume /2 schema):

<property name="val-first">#1</>
<property name="val-second">#2</>
<property name="switch">first</>
<property-evaluate name="derived">val-${switch}</>

Alternately, just support nested substitutions even though Ant does not:

<property name="val-first">#1</>
<property name="val-second">#2</>
<property name="switch">first</>
<property name="derived">${val-${switch}}</>
Comment 1 Jesse Glick 2007-03-24 15:59:59 UTC
Maybe not such a priority, since we found a workaround for ${platform} in JDK
projectization.
Comment 2 Jesse Glick 2007-04-04 19:15:02 UTC
No longer a blocker.
Comment 3 Jesse Glick 2008-12-10 00:30:03 UTC
Not actively developing freeform.