org.apache.tools.ant.taskdefs.condition
public class IsSigned extends DataType implements Condition
Method Summary | |
---|---|
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. |
true
if the file exists and is signed with
the signature specified, or, if name
wasn't
specified, if the file contains a signature.Returns: true if the file is signed.
true
if the file exists and is signed with
the signature specified, or, if name
wasn't
specified, if the file contains a signature.Parameters: zipFile the zipfile to check name the signature to check (may be killed)
Returns: true if the file is signed.
Throws: IOException on error
Parameters: file jarfile to be tested.
Parameters: name signature to look for.