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 - Support recursive property substitutions in <property>
Summary: Support recursive property substitutions in <property>
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Freeform (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-20 20:20 UTC by Jesse Glick
Modified: 2008-12-10 00:30 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.