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 11804

Summary: Make 'nbm' target create an unsigned NBM by default
Product: www Reporter: Jesse Glick <jglick>
Component: Builds & RepositoriesAssignee: rnovak <rnovak>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description Jesse Glick 2001-04-27 10:24:42 UTC
Currently when running the 'nbm' target in a module build script, if you do not
wish to sign the NBM (e.g. because you do not have the secret key) you must know
to pass -Dstorepass=\? to suppress signing which is not obvious. (The MakeNBM
task recognizes this password specially as meaning "do not try to sign the
NBM".)

Suggest that every build script with an 'nbm' target begin this target with a
default:

<target name="nbm" depends="netbeans">
    <property name="storepass" value="?"/>
    <makenbm ....>
</target>

Then module developers who simply type "ant -f mymodule/build.xml nbm" will get
an unsigned NBM, enough to test installation etc. If you pass the correct
keystore location and storage password, it will still be signed.

Also suggest nbbuild.netbeans.org web pages be updated to recommend this
property definition in the beginning of every 'nbm' target. Also the template
apisupport/src/org/netbeans/modules/apisupport/ant/AntScript.xml_ should be
updated to match.
Comment 1 Jan Chalupa 2001-05-06 14:14:36 UTC
Target milestone -> 3.3
Comment 2 Jesse Glick 2001-06-19 21:55:21 UTC
*** Issue 12621 has been marked as a duplicate of this issue. ***
Comment 3 Michal Zlamal 2002-03-13 16:44:15 UTC
I'm checking the existence of storekey file - if there is no file I do not 
sign.