Package org.apache.tools.ant.taskdefs
Class VerifyJar
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.AbstractJarSignerTask
org.apache.tools.ant.taskdefs.VerifyJar
- All Implemented Interfaces:
- Cloneable
JAR verification task.
 For every JAR passed in, we fork jarsigner to verify
 that it is correctly signed. This is more rigorous than just checking for
 the existence of a signature; the entire certification chain is tested
- Since:
- Ant 1.7
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringno file message "Not found :"static final StringError output if there is a failure to verify the jar.Fields inherited from class org.apache.tools.ant.taskdefs.AbstractJarSignerTaskalias, ERROR_NO_SOURCE, filesets, jar, JARSIGNER_COMMAND, keypass, keystore, maxMemory, storepass, storetype, strict, verboseFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidinit processing logic; this is retained through our execution(s)protected voidany cleanup logicvoidexecute()verify our jar filesvoidsetCertificates(boolean certificates) Ask for certificate information to be printedMethods inherited from class org.apache.tools.ant.taskdefs.AbstractJarSignerTaskaddArg, addArgument, addFileset, addSysproperty, addValue, bindToKeystore, createJarSigner, createPath, createUnifiedSourcePath, createUnifiedSources, declareSysProperty, getRedirector, hasResources, setAlias, setCommonOptions, setExecutable, setJar, setKeypass, setKeystore, setMaxmemory, setProviderArg, setProviderClass, setProviderName, setStorepass, setStoretype, setStrict, setVerboseMethods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
- 
Field Details- 
ERROR_NO_FILE
- 
ERROR_NO_VERIFYError output if there is a failure to verify the jar.- See Also:
 
 
- 
- 
Constructor Details- 
VerifyJarpublic VerifyJar()
 
- 
- 
Method Details- 
setCertificatespublic void setCertificates(boolean certificates) Ask for certificate information to be printed- Parameters:
- certificates- if true print certificates.
 
- 
executeverify our jar files- Overrides:
- executein class- Task
- Throws:
- BuildException- on error.
 
- 
beginExecutionprotected void beginExecution()Description copied from class:AbstractJarSignerTaskinit processing logic; this is retained through our execution(s)- Overrides:
- beginExecutionin class- AbstractJarSignerTask
- Since:
- 1.10.3
 
- 
endExecutionprotected void endExecution()Description copied from class:AbstractJarSignerTaskany cleanup logic- Overrides:
- endExecutionin class- AbstractJarSignerTask
- Since:
- 1.10.3
 
 
-