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.
The project.license key in the nbproject/project.properties file does not seem to be read in certain project types, at least PHP and Python projects, but it does work in Java projects. Steps to reproduce: 1. Create PHP project 2. Open nbproject/project.properties and add in "project.license=apache20" 3. Create new PHP file Expected result: New PHP file is created with the apache20 license at the top. Actual result: PHP file contains the default license at the top. Workaround: It can be made to work by editing the PHP file template and setting the license line to <#include "../Licenses/license-apache20.txt"> The exact same steps work with Java projects.
*** Issue 168441 has been marked as a duplicate of this issue. ***
Fixed, please verify. Thanks. http://hg.netbeans.org/web-main/rev/5b08c367d748
Integrated into 'main-golden', will be available in build *200907160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/5b08c367d748 User: Tomas Mysik <tmysik@netbeans.org> Log: #167661: Template file does not read project.properties
Tested with daily build 200907171401 and can confirm it now uses the license template I added. Thanks! Not sure if this is significant, but the built-in licenses, such as apache20 and mit, are blank. I believe this bug still exists for Python projects though, and possibly others. Should another bug be opened for those?
> Should another bug be opened for those? Yes, please. Add this issue for more information and possible fix. Thanks a lot.
*** Issue 170542 has been marked as a duplicate of this issue. ***