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 253367

Summary: Default Java Code Template File gives Obsolete instructions for the License
Product: projects Reporter: mark_barnes
Component: Ant FreeformAssignee: Tomas Stupka <tstupka>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description mark_barnes 2015-07-08 15:48:26 UTC
The installed template for Java Code (probably others) tells you how to set a license file for the project, but what it tells you to do is not possible:

* To change this license header, choose License Headers in Project Properties.

There is no "License Headers" Category in the Project Properties.  (It's a free-form Java project with existing sources and ant script.)

My company requires that we include a standard copyright notice in each file.  I want to automatically include that whenever I create a new file.  The text that surrounds the license must, of course, be specific to the file type (Java, HTML, JSP, CSS, etc,) but the text itself must always be the same.  I don't want to have to edit each template.  I want the template to include the license file like they already do.

I have added a custom license under Tools -> Templates -> Licenses.  Now how do I tell NB to use it?
Comment 1 Milutin Kristofic 2015-07-15 14:50:15 UTC
* Right click on Project (something like JavaApplication1)
* Choose properties
* In Categories you have License Headers category
*
Comment 2 Milutin Kristofic 2015-07-15 14:50:15 UTC
* Right click on Project (something like JavaApplication1)
* Choose properties
* In Categories you have License Headers category
*
Comment 3 mark_barnes 2015-07-15 14:53:23 UTC
When I do that, I do not see "License Headers" in the Categories