Please use the Apache issue tracking system for new NetBeans issues ( !!
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
All All
: P3 with 1 vote (vote)
Assigned To: ardavis26
Depends on:
  Show dependency treegraph
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


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, I should be able to set
project.license in the 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 > 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
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 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 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.

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