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 156819 - project.license ignored in nbproject/private/private.properties
Summary: project.license ignored in nbproject/private/private.properties
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker with 1 vote (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-14 15:19 UTC by ats37
Modified: 2010-10-15 02:57 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 ats37 2009-01-14 15:19:37 UTC
I'm using Netbeans 6.5, both under Sun's JDK 1.6.0_02 on Windows XP and under Sun's JDK 1.6.0_07 on Linux.

I have created a custom license template
Tools->Templates->Licenses->license-mylicense.txt
When I add the setting
project.license=mylicense
to nbproject/project.properties, my custom license text gets included in new Java source files as expected.  However, I
can't guarantee that others I work with have also added the template file in their Netbeans installations, or used the
same name for it.  So I'd prefer to put this setting in nbproject/private/private.properties, so it's local to me and
doesn't get versioned in our source control system.  However, if I do this, the Java file template reverts to including
the default text rather my customised version.
Comment 1 Jan Jancura 2009-03-25 15:19:03 UTC
sounds like very specific requirement.
Comment 2 ats37 2009-03-25 15:39:48 UTC
Yes and no.  I'm currently able to use private.properties to override settings from project.properties and add new ones,
to use in the project's build.xml.  I'd just like project.license to behave the same way, currently only a value in
project.properties has any effect.
Comment 3 Jan Jancura 2009-03-25 17:03:38 UTC
I understand. Its consistency issue in this case.
Comment 4 Tomas Zezula 2010-10-13 14:37:31 UTC
Fixed jet-main 245176c911ca
Comment 5 Quality Engineering 2010-10-15 02:57:05 UTC
Integrated into 'main-golden', will be available in build *201010150000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/245176c911ca
User: Tomas Zezula <tzezula@netbeans.org>
Log: #156819:project.license ignored in nbproject/private/private.properties