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 157733 - Change type of <target>-nodes to substitutable-text
Summary: Change type of <target>-nodes to substitutable-text
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Freeform (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-01 16:38 UTC by argelbargel
Modified: 2016-07-07 08:39 UTC (History)
0 users

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 argelbargel 2009-02-01 16:38:35 UTC
Would it be possible to change the type of <target>-nodes in <ide-action>- and <action>-nodes from "xsd:token" to
"substitutable-text"?

Background: i'm working on a project which has a big monolithic build-file where builds for different
environments/componets are declared by ant-targets, not by build-properties (e.g. "<target
name="<environ>.<component>.<build-action>"> in the ant-buildfile). While this seems to be rather "un-clever" to say the
least, i'm stuck with it. If the value of the <target>-nodes in project.xml were "substitutable-text" I could create a
single project-template which gets parameterized for the different environments by a properties-file.

I'm aware that enhancing the netbeans-project-system for my personal needs might get a very high priority ;-); so
perhaps another reason to make this change this might be that mixing "substitutable-text" and "xsd:-token"-types is
suprising if do not know the freeforn-schemas by heart (of course this is an advanced feature, so you can expect us to
look them up, after all) ;-)
Comment 1 Jesse Glick 2009-02-01 17:29:13 UTC
Perhaps you could have in your build.xml:

<target name="metatarget">
  <antcall target="${target}"/>
</>

and in your project.xml, use

<target>metatarget</>
<property name="target">${environ}.${component}</>

?
Comment 2 argelbargel 2009-02-01 18:12:42 UTC
@jglick: of course, thanks! did not think about that. this might be a change i could add to the build-file (which is
controlled by a 3rd party). For now i use xml-entities and a custom dtd to define the properties needed for
<target>-nodes; your solution is much more elegant, though.
Comment 3 Antonin Nebuzelsky 2010-01-11 04:29:23 UTC
Changing the default component owner to tzezula.
Comment 4 Martin Balin 2016-07-07 08:39:27 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss