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.
If you attempt to import a file called anything other than license-xxxx.txt such as BSD-3-Clause-License.txt the file will import, but will not work in the projects. It will produce an error. Product Version = NetBeans IDE 7.4 Beta (Build 201307092200) Operating System = Mac OS X version 10.8.4 running on x86_64 Java; VM; Vendor = 1.7.0_25 Runtime = Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Created attachment 137740 [details] IDE log
Created attachment 137741 [details] BSD 3 Clause License This is the license that fails.
Created attachment 137742 [details] BSD 3 Clause License (Working) This license will work if imported.
Reproduced. It screws up at org.netbeans.modules.project.uiapi.ProjectTemplateAttributesProvider.ensureProjectAttrs()
it has to be disallowed to include not properly named files or they have to be renamed to proper naming pattern
ProjectTemplateAttributesProvider.ensureProjectAttrs() works correctly as far as I can see. The license-XXX.txt pattern is present since day one (nb 4.x or 5.x). XXX is used in project.properties files in ant based projects to indicate the license used. the newly introduced LICENSE_PATH property is only handled in ProjectTemplateAttributesProvider.ensureProjectAttrs() to ensure the freemarker engine correctly processes both SFS based and filesystem based templates. to fix the problem I believe the Tools/Templates dialog needs to enforce the templates/licenses folder's requirements on file names.
Hmm, I do not see a valid reason for that, but if you say that it must be that way...
Fixed by changeset: 262166:247757356d03 http://hg.netbeans.org/core-main/rev/247757356d03
Integrated into 'main-silver', will be available in build *201308222300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/247757356d03 User: mentlicher@netbeans.org Log: #233352: Do not allow to create license without the mandatory prefix and suffix.