org.apache.tools.ant.taskdefs
public class SignJar extends Task
Since: Ant 1.1
UNKNOWN: category="java"
Field Summary | |
---|---|
protected String | alias
The alias of signer. |
protected Vector | filesets
the filesets of the jars to sign |
protected boolean | internalsf |
protected File | jar
The name of the jar file. |
protected String | keypass |
protected boolean | lazy
Whether to assume a jar which has an appropriate .SF file in is already
signed. |
protected boolean | sectionsonly |
protected String | sigfile |
protected File | signedjar |
protected String | storepass |
protected String | storetype |
protected boolean | verbose |
Method Summary | |
---|---|
void | addFileset(FileSet set)
Adds a set of files to sign |
void | execute()
sign the jar(s) |
protected boolean | isSigned(File file)
test for a file being signed, by looking for a signature in the META-INF
directory |
protected boolean | isUpToDate(File jarFile, File signedjarFile) |
void | setAlias(String alias)
the alias to sign under; required |
void | setInternalsf(boolean internalsf)
Flag to include the .SF file inside the signature;
optional; default false |
void | setJar(File jar)
the jar file to sign; required |
void | setKeypass(String keypass)
password for private key (if different); optional |
void | setKeystore(String keystore)
keystore location; required |
void | setLazy(boolean lazy)
flag to control whether the presence of a signature
file means a JAR is signed;
optional, default false |
void | setMaxmemory(String max)
Set the maximum memory to be used by the jarsigner process
|
void | setSectionsonly(boolean sectionsonly)
flag to compute hash of entire manifest;
optional, default false |
void | setSigfile(String sigfile)
name of .SF/.DSA file; optional |
void | setSignedjar(File signedjar)
name of signed JAR file; optional |
void | setStorepass(String storepass)
password for keystore integrity; required |
void | setStoretype(String storetype)
keystore type; optional |
void | setVerbose(boolean verbose)
Enable verbose output when signing
; optional: default false |
Since: Ant 1.4
Parameters: file
Returns: true if the file is signed
Parameters: max a string indicating the maximum memory according to the JVM conventions (e.g. 128m is 128 Megabytes)