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 267228

Summary: Setting project.licensePath for NB module development doesn't work
Product: apisupport Reporter: westrick85 <westrick85>
Component: ProjectAssignee: Martin Kozeny <mkozeny>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Excerpt of messages.log with error and stack trace
Test module project showing the error

Description westrick85 2016-07-20 18:05:58 UTC
Created attachment 161352 [details]
Excerpt of messages.log with error and stack trace

I am attempting to set a custom license template for a NB module project. There is no option in the project settings dialog, so I just added project.licensePath to nbproject/project.properties. I also created the license template in nbproject/license-custom.txt.

When I create a new Java file, instead of the custom license, the first line of the file says this:  Error reading included file Templates/Classes/C:\dev\module1\nbproject\license-custom.txt
Comment 1 westrick85 2016-07-20 18:07:38 UTC
Created attachment 161353 [details]
Test module project showing the error