Class IsSigned
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.taskdefs.condition.IsSigned
-
Field Summary
Fields inherited from class ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaneval()Returnstrueif the file exists and is signed with the signature specified, or, ifnamewasn't specified, if the file contains a signature.static booleanReturnstrueif the file exists and is signed with the signature specified, or, ifnamewasn't specified, if the file contains a signature.voidThe jarfile that is to be tested for the presence of a signature.voidThe signature name to check jarfile for.Methods inherited from class DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toStringMethods inherited from class ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
-
Constructor Details
-
IsSigned
public IsSigned()
-
-
Method Details
-
setFile
The jarfile that is to be tested for the presence of a signature.- Parameters:
file- jarfile to be tested.
-
setName
The signature name to check jarfile for.- Parameters:
name- signature to look for.
-
isSigned
Returnstrueif the file exists and is signed with the signature specified, or, ifnamewasn't specified, if the file contains a signature.- Parameters:
zipFile- the zipfile to checkname- the signature to check (may be killed)- Returns:
- true if the file is signed.
- Throws:
IOException- on error
-
eval
-