- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for toZeroPaddedString (0.18 sec)
-
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/AbstractModule.groovy
} private TestFile hashFile(TestFile file, HashFunction hashFunction) { def hashFile = getHashFile(file, hashFunction) def hash = hashFunction.hashFile(file) hashFile.text = hash.toZeroPaddedString(hashFunction.hexDigits) return hashFile } private TestFile getHashFile(TestFile file, HashFunction hashFunction) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5K bytes - Viewed (0) -
platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperChecksumVerificationTest.groovy
} static String getDistributionHash(GradleDistribution distribution) { sha256().hashFile(distribution.binDistribution).toZeroPaddedString(sha256().hexDigits) } def "wrapper preserves new checksum if it was provided in properties"() { given: configureServer(false)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 05:54:32 UTC 2024 - 6K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpServer.groovy
response.setContentType(contentType ?: new MimeTypes().getMimeByExtension(file.name).toString()) if (sendSha1Header) { response.addHeader("X-Checksum-Sha1", Hashing.sha1().hashBytes(content).toZeroPaddedString(Hashing.sha1().hexDigits)) } addEtag(response, content, etags) response.outputStream << content }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 32.3K bytes - Viewed (0)