<signjar>

The <signjar> task gives you the ability to sign JARs. The attributes of the task (see Table 4.71) correspond to the attributes associated with the jarsigner tool. (See http://java.sun.com/docs/books/tutorial/jar/sign/signing.html for more details.)

Table 4.71. Table of <signjar> Attributes
Attributes Description
Required
alias The alias to sign under.
jar The name of the JAR file to be signed.
storepass The password for keystore integrity.
Optional
internalsf If true, the .SF file will be included inside the signature block. Defaults to false.
keypass The password for the private key (if different).
keystore The keystore location.
lazy If true, the presence of a signature file means a JAR is assumed to be signed. Defaults to false. ...

Get Ant Developer’s Handbook 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.