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 167661

Summary: Template file does not read
Product: php Reporter: johnjackson <johnjackson>
Component: ProjectAssignee: Tomas Mysik <tmysik>
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description johnjackson 2009-06-25 16:42:26 UTC
The project.license key in the nbproject/ 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/ 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.

It can be made to work by editing the PHP file template and setting the license line to <#include

The exact same steps work with Java projects.
Comment 1 Tomas Mysik 2009-07-13 08:49:24 UTC
*** Issue 168441 has been marked as a duplicate of this issue. ***
Comment 2 Tomas Mysik 2009-07-15 16:47:25 UTC
Fixed, please verify. Thanks.
Comment 3 Quality Engineering 2009-07-16 05:59:33 UTC
Integrated into 'main-golden', will be available in build *200907160201* on (upload may still be in progress)
User: Tomas Mysik <>
Log: #167661: Template file does not read
Comment 4 johnjackson 2009-07-19 16:42:05 UTC
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?
Comment 5 Tomas Mysik 2009-07-20 09:04:45 UTC
> Should another bug be opened for those?

Yes, please. Add this issue for more information and possible fix. Thanks a lot.
Comment 6 Tomas Mysik 2009-08-19 09:38:41 UTC
*** Issue 170542 has been marked as a duplicate of this issue. ***