Name
signjar
Synopsis
Executes the jarsigner
command-line tool.
Attributes
-
alias
(all, String, Y) Specifies the alias to sign under.
-
internalsf
(all, boolean, N) If
true
, include the.SF
file inside the signature block. Defaults tofalse
.-
jar
(all, String, Y) The JAR file to sign.
-
keypass
(all, String, *) The password for the private key.
-
keystore
(all, String, N) The keystore location.
-
sectionsonly
(all, boolean, N) If
true
, don’t compute the hash of the entire manifest. Defaults tofalse
.-
sigfile
(all, String, N) The name of the
.SF
or.DSA
file.-
signedjar
(all, String, N) The name of the signed JAR file.
-
storepass
(all, String, Y) The password for keystore integrity.
-
storetype
(all, String, N) The keystore type.
-
verbose
(all, boolean, N) If
true
, produce verbose output. Defaults tofalse
.
keypass
is required if the private key password is
different than the keystore password.
Content
- 0..n nested
<fileset>
elements (1.4) Use in place of the
jar
attribute to sign multiple files.
Example Usage
<signjar jar="${builddir}/server.jar" alias="oreilly" storepass="${password}"/>
Get Ant: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.