| 
 | ||||||||||
| 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.
| Field Summary | |
| protected  java.lang.String | aliasThe alias of signer. | 
| protected  java.util.Vector | filesetsthe filesets of the jars to sign | 
| protected  boolean | internalsf | 
| protected  java.io.File | jarThe name of the jar file. | 
| protected  java.lang.String | keypass | 
| protected  boolean | lazyWhether to assume a jar which has an appropriate .SF file in is already signed. | 
| protected  boolean | sectionsonly | 
| protected  java.lang.String | 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)test for a file being signed, by looking for a signature in the META-INF directory | 
| 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.lang.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(java.lang.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(java.lang.String 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, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType | 
| 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.lang.String storepass
protected java.lang.String storetype
protected java.lang.String keypass
protected java.lang.String 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 setMaxmemory(java.lang.String max)
max - a string indicating the maximum memory according to the
        JVM conventions (e.g. 128m is 128 Megabytes)public void setJar(java.io.File jar)
public void setAlias(java.lang.String alias)
public void setKeystore(java.lang.String 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.lang.String 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 TaskBuildException - if something goes wrong with the build
protected boolean isUpToDate(java.io.File jarFile,
                             java.io.File signedjarFile)
protected boolean isSigned(java.io.File file)
file - 
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||