|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.Task | +--org.apache.tools.ant.taskdefs.SignJar
Signs jar or zip files with the javasign command line tool. The
tool detailed dependency checking: files are only signed if they
are not signed. The signjar attribute can point to the file to
generate; if this file exists then
its modification date is used as a cue as to whether to resign any JAR file.
Note: Requires Java 1.2 or later.
Field Summary | |
protected java.lang.String |
alias
The alias of signer. |
protected java.util.Vector |
filesets
the filesets of the jars to sign |
protected boolean |
internalsf
|
protected java.io.File |
jar
The name of the jar file. |
protected java.lang.String |
keypass
|
protected java.io.File |
keystore
The name of keystore file. |
protected boolean |
lazy
Whether to assume a jar which has an appropriate .SF file in is already signed. |
protected boolean |
sectionsonly
|
protected java.io.File |
sigfile
|
protected java.io.File |
signedjar
|
protected java.lang.String |
storepass
|
protected java.lang.String |
storetype
|
protected boolean |
verbose
|
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
SignJar()
|
Method Summary | |
void |
addFileset(FileSet set)
Adds a set of files to sign |
void |
execute()
sign the jar(s) |
protected boolean |
isSigned(java.io.File file)
|
protected boolean |
isUpToDate(java.io.File jarFile,
java.io.File signedjarFile)
|
void |
setAlias(java.lang.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(java.io.File jar)
the jar file to sign; required |
void |
setKeypass(java.lang.String keypass)
password for private key (if different); optional |
void |
setKeystore(java.io.File 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 |
setSectionsonly(boolean sectionsonly)
flag to compute hash of entire manifest; optional, default false |
void |
setSigfile(java.io.File sigfile)
name of .SF/.DSA file; optional |
void |
setSignedjar(java.io.File signedjar)
name of signed JAR file; optional |
void |
setStorepass(java.lang.String storepass)
password for keystore integrity; required |
void |
setStoretype(java.lang.String storetype)
keystore type; optional |
void |
setVerbose(boolean verbose)
Enable verbose output when signing ; optional: default false |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.io.File jar
protected java.lang.String alias
protected java.io.File keystore
protected java.lang.String storepass
protected java.lang.String storetype
protected java.lang.String keypass
protected java.io.File sigfile
protected java.io.File signedjar
protected boolean verbose
protected boolean internalsf
protected boolean sectionsonly
protected java.util.Vector filesets
protected boolean lazy
Constructor Detail |
public SignJar()
Method Detail |
public void setJar(java.io.File jar)
public void setAlias(java.lang.String alias)
public void setKeystore(java.io.File keystore)
public void setStorepass(java.lang.String storepass)
public void setStoretype(java.lang.String storetype)
public void setKeypass(java.lang.String keypass)
public void setSigfile(java.io.File sigfile)
public void setSignedjar(java.io.File signedjar)
public void setVerbose(boolean verbose)
public void setInternalsf(boolean internalsf)
public void setSectionsonly(boolean sectionsonly)
public void setLazy(boolean lazy)
public void addFileset(FileSet set)
public void execute() throws BuildException
execute
in class Task
BuildException
- if something goes wrong with the buildprotected boolean isUpToDate(java.io.File jarFile, java.io.File signedjarFile)
protected boolean isSigned(java.io.File file)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |