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 - Default Java Code Template File gives Obsolete instructions for the License
Summary: Default Java Code Template File gives Obsolete instructions for the License
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Freeform (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-08 15:48 UTC by mark_barnes
Modified: 2015-07-22 14:42 UTC (History)
0 users

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 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