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.
Summary: | License Templates Add does not support arbitrarily named files | ||
---|---|---|---|
Product: | platform | Reporter: | jyeary <jyeary> |
Component: | Templates | Assignee: | Martin Entlicher <mentlicher> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mkleint |
Priority: | P2 | ||
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
IDE log
BSD 3 Clause License BSD 3 Clause License (Working) |
Description
jyeary
2013-07-24 22:35:54 UTC
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. |