|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.undercouch.gradle.tasks.download.VerifyAction
public class VerifyAction
Verifies a file's integrity by calculating its checksum.
| Constructor Summary | |
|---|---|
VerifyAction(org.gradle.api.Project project)
Creates a new verify action |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VerifyAction(org.gradle.api.Project project)
project - the project to be built| Method Detail |
|---|
public void execute()
throws java.io.IOException,
java.security.NoSuchAlgorithmException
java.io.IOException - if the file could not verified
java.security.NoSuchAlgorithmException - if the given algorithm is not availablepublic void src(java.lang.Object src)
VerifySpec
src in interface VerifySpecsrc - the file (either a filename or a File object)public void algorithm(java.lang.String algorithm)
VerifySpec
algorithm in interface VerifySpecalgorithm - the name of the algorithmpublic void checksum(java.lang.String checksum)
VerifySpec
checksum 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||