public class VerifyAction extends java.lang.Object implements VerifySpec
| Constructor and Description |
|---|
VerifyAction(org.gradle.api.Project project)
Creates a new verify action
|
| Modifier and Type | Method and Description |
|---|---|
void |
algorithm(java.lang.String algorithm)
Set the algorithm to use to compute the checksum.
|
void |
checksum(java.lang.String checksum)
Set the actual checksum to verify against
|
void |
execute()
Starts verifying
|
java.lang.String |
getAlgorithm() |
java.lang.String |
getChecksum() |
java.io.File |
getSrc() |
void |
src(java.lang.Object src)
Sets the file to verify
|
public VerifyAction(org.gradle.api.Project project)
project - the project to be builtpublic void execute()
throws java.io.IOException,
java.security.NoSuchAlgorithmException
java.io.IOException - if the file could not verifiedjava.security.NoSuchAlgorithmException - if the given algorithm is not availablepublic void src(java.lang.Object src)
VerifySpecsrc in interface VerifySpecsrc - the file (either a filename or a File object)public void algorithm(java.lang.String algorithm)
VerifySpecalgorithm in interface VerifySpecalgorithm - the name of the algorithmpublic void checksum(java.lang.String checksum)
VerifySpecchecksum in interface VerifySpecchecksum - the checksum (in hex)public java.io.File getSrc()
getSrc in interface VerifySpecpublic java.lang.String getAlgorithm()
getAlgorithm in interface VerifySpecpublic java.lang.String getChecksum()
getChecksum in interface VerifySpec