Search in sources :

Example 1 with ByteArrayReadableContent

use of org.gradle.internal.resource.local.ByteArrayReadableContent in project gradle by gradle.

the class ExternalResourceResolver method putChecksum.

private void putChecksum(File source, ExternalResourceName destination) {
    byte[] checksumFile = createChecksumFile(source, "SHA1", 40);
    ExternalResourceName checksumDestination = destination.append(".sha1");
    repository.resource(checksumDestination).put(new ByteArrayReadableContent(checksumFile));
}
Also used : ExternalResourceName(org.gradle.internal.resource.ExternalResourceName) ByteArrayReadableContent(org.gradle.internal.resource.local.ByteArrayReadableContent)

Aggregations

ExternalResourceName (org.gradle.internal.resource.ExternalResourceName)1 ByteArrayReadableContent (org.gradle.internal.resource.local.ByteArrayReadableContent)1