Hi,
I want to know if Netbeans has some option/ setting that will allow me to automatically sign a jar as part of the build.
Thank you!
Hi,
I want to know if Netbeans has some option/ setting that will allow me to automatically sign a jar as part of the build.
Thank you!
Thread with answer: http://old.nabble.com/Calling-Jarsigner-after-compiling-td11970289.html
query that I used to find the thread: http://www.google.com/search?q=netbeans+jarsigner
In your -post-jar
ant target, it may be convenient to read the <signjar> password from a file, e.g. ~/.keyconf. Give the file user-only access: e.g. 400
or 600
.
<loadfile srcfile="${user.home}/.keyconf" property="keyconf"/>
<signjar alias="..." storepass="${keyconf}">
...
</signjar>
You could use the maven plugin for that. Netbeans is able to open and create maven files out-of-the-box.
If you need signing for jnlp you could look into this and that explanation, which works fine in my TimeFinder project see the pom.xml.