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 150643 - Support reading project.properties in Templates
Summary: Support reading project.properties in Templates
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-19 15:26 UTC by fommil
Modified: 2016-07-07 08:38 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 fommil 2008-10-19 15:26:51 UTC
I recently wanted to setup a system whereby I could define several variables in the project.properties file, and have them inserted into the License definition 
file. Specifically, I wanted to be able to define a project-level "owner" so that the copyright would be assigned to the right place*. However, the Template 
engine is not powerful enough to support this as it only seems to be able to read the variable named "project.license" and not anything such as 
"project.owner".

Please enable this support... I am constantly being surprised by how cumbersome and useless the templating system is!

* My company owns the copyright on work projects, I own the copyright on my open source projects, and on some open source projects I assign the 
copyright to say, FSF.
Comment 1 Jaromir Uhrik 2008-10-20 08:09:32 UTC
It seems to belong to apisupport component. Please evaluate - feel free to reassign.
Thanks.
Comment 2 Milos Kleint 2008-10-20 08:23:55 UTC
more likely something that would have to be added to all project types in their CreateFromTemplateAttributesProvider
implementations.

See 
org.netbeans.modules.java.api.common.queries.QuerySupport.createTemplateAttributesProvider()
for example.

IMHO rather than reading bare project.properties, we should have some kind of UI and have explicitly added/edited
properties there only. Maybe added through AuxiliaryProperties, and physically added to project.xml file, rather than
project.properties (which is used in ant and could have strange sideeffects)

not a defect.
Comment 3 Antonin Nebuzelsky 2010-03-29 14:10:51 UTC
Change of default owner.
Comment 4 Martin Balin 2016-07-07 08:38:46 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