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 163029 - project.license not being read in Python templates
Summary: project.license not being read in Python templates
Status: NEW
Alias: None
Product: python
Classification: Unclassified
Component: Platform (show other bugs)
Version: 7.1
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: ardavis26
URL: http://platform.netbeans.org/tutorial...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-19 02:49 UTC by jwhonce
Modified: 2017-06-22 22:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


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.
Comment 3 Jenselme 2017-06-22 22:13:50 UTC
Sadly this is still a thing.