Bug 163029 - project.license not being read in Python templates
project.license not being read in Python templates
Status: NEW
Product: python
Classification: Unclassified
Component: Platform
7.1
All All
: P3 with 1 vote (vote)
: TBD
Assigned To: ardavis26
issues@python
http://platform.netbeans.org/tutorial...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-19 02:49 UTC by jwhonce
Modified: 2011-06-12 15:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jwhonce 2009-04-19 02:49:29 UTC
Python templates don't honor the project.license property setting. They always use the value of "default". The
workaround given below for Ruby templates works for Python as well.

Copied from Issue # 148285 Re: Ruby templates. 

According to http://platform.netbeans.org/tutorials/60/nbm-filetemplates.html#license, I should be able to set
project.license in the project.properties file to make the template include a different license than the default.

I have followed the instructions in the above tutorial for a Java project and see that it works. When I try it with Ruby
templates, the project.license is never read and the license is always the default. If I have the template print out
project.license it prints "default" and not "ruby".

Workaround: replace ${project.license} with ${license} and put 
license=ruby in the User Configuration Properties > User.properties template.

However, if you are sharing the project, this won't affect other uses. There should be a way to set the license for a
project.
Comment 1 MindDrive 2010-07-28 07:30:49 UTC
A little over a year later and this issue seems to still exist (I ran a truss on the running NetBeans process and noticed that while the project.properties file was opened, it was never read).  Has anyone looked into a fix for this yet, possibly?
Comment 2 alesak 2011-06-12 15:34:44 UTC
I have the same problem with Java Class template with current NB DEV version.

project.license property in project.properties file is not used and default license is applied.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo