从NetBeans中构建时自动注册一个JAR [英] Sign a JAR automatically when building from Netbeans

查看:257
本文介绍了从NetBeans中构建时自动注册一个JAR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,如果Netbeans的有一些选项或设置,让我自动登录一个jar作为构建的一部分。

I want to know if Netbeans has some option or setting that will allow me to automatically sign a jar as part of the build.

推荐答案

在你的 -post-JAR Ant目标,它可以方便地读取的<signjar>从文件密码,如:的〜/ .keyconf 的。给文件的用户只能访问:例如 400 600

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>

这篇关于从NetBeans中构建时自动注册一个JAR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆