org.apache.tools.ant.taskdefs.condition
Class IsSigned
- Cloneable, Condition
Checks whether a jarfile is signed: if the name of the
signature is passed, the file is checked for presence of that
particular signature; otherwise the file is checked for the
existence of any signature.
boolean | eval() - Returns
true if the file exists and is signed with
the signature specified, or, if name wasn't
specified, if the file contains a signature.
|
static boolean | isSigned(File zipFile, String name) - Returns
true if the file exists and is signed with
the signature specified, or, if name wasn't
specified, if the file contains a signature.
|
void | setFile(File file) - The jarfile that is to be tested for the presence
of a signature.
|
void | setName(String name) - The signature name to check jarfile for.
|
checkAttributesAllowed , checkChildrenAllowed , circularReference , clone , dieOnCircularReference , dieOnCircularReference , dieOnCircularReference , getCheckedRef , getCheckedRef , getCheckedRef , getCheckedRef , getDataTypeName , getRefid , invokeCircularReferenceCheck , isChecked , isReference , noChildrenAllowed , setChecked , setRefid , toString , tooManyAttributes |
eval
public boolean eval()
Returns true
if the file exists and is signed with
the signature specified, or, if name
wasn't
specified, if the file contains a signature.
- eval in interface Condition
- true if the file is signed.
isSigned
public static boolean isSigned(File zipFile,
String name)
throws IOException
Returns true
if the file exists and is signed with
the signature specified, or, if name
wasn't
specified, if the file contains a signature.
zipFile
- the zipfile to checkname
- the signature to check (may be killed)
- true if the file is signed.
setFile
public void setFile(File file)
The jarfile that is to be tested for the presence
of a signature.
file
- jarfile to be tested.
setName
public void setName(String name)
The signature name to check jarfile for.
name
- signature to look for.