- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for toCompactString (0.19 sec)
-
subprojects/core/src/main/java/org/gradle/groovy/scripts/TextResourceScriptSource.java
if (sourceUri != null) { String path = sourceUri.toString(); return classNameFromPath(path); } return "script_" + hashString(resource.getText()).toCompactString(); } private String classNameFromPath(String path) { String name = substringBeforeLast(substringAfterLast(path, "/"), "."); StringBuilder className = new StringBuilder(name.length());
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jul 07 10:24:10 UTC 2021 - 3.6K bytes - Viewed (0) -
platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/HashCodeTest.groovy
} def "can create compact string representation"() { expect: Hashing.md5().hashString("").toCompactString() == "ck2u8j60r58fu0sgyxrigm3cu" Hashing.md5().hashString("a").toCompactString() == "r6p51cluyxfm1x21kf967yw1" Hashing.md5().hashString("i").toCompactString() == "7ycx034q3zbhupl01mv32dx6p" } def "can create zero-padded hex representation"() { expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:43:29 UTC 2023 - 8.2K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/vcs/internal/SourceDependencies.groovy
TestFile checkoutDir(String repoName, String versionId, String repoId, TestFile baseDir=testDirectory) { def prefix = repoName.take(9) def hashedCommit = hashString("${repoId}-${versionId}").toCompactString() return baseDir.file(".gradle/vcs-1/${prefix}_${hashedCommit}/${repoName}") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.2K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/ConfigurationCacheReport.kt
} return reportFile } private fun reportHash() = hashingStream.hash().toCompactString() } object Closed : State() { override fun close(): State = this } } private
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 11.4K bytes - Viewed (0) -
platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/internal/CompilerOutputFileNamingScheme.java
return new File(hashDirectory, baseName + objectFileNameSuffix); } protected String generateUniqueNameFor(File sourceFile) { return hashString(fileResolver.resolveAsRelativePath(sourceFile)).toCompactString(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 1.9K bytes - Viewed (0) -
platforms/native/language-native/src/main/java/org/gradle/language/cpp/internal/NativeDependencyCache.java
.withInitialLockMode(FileLockManager.LockMode.OnDemand) .open(); } public File getModuleMapFile(final ModuleMap moduleMap) { final String hash = moduleMap.getHashCode().toCompactString(); return cache.useCache(() -> { File dir = new File(cache.getBaseDir(), "maps/" + hash + "/" + moduleMap.getModuleName()); File moduleMapFile = new File(dir, "module.modulemap");
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 2.2K bytes - Viewed (0) -
platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HashCode.java
* <pre>{@code * assertEquals(hash, HashCode.fromString(hash.toString())) * }</pre> * <p> * This method does not work with {@link #toCompactString()}. */ public static HashCode fromString(String string) { int length = string.length(); if (length % 2 != 0 || length < MIN_NUMBER_OF_BYTES * 2
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Dec 14 19:25:07 UTC 2023 - 10.9K bytes - Viewed (0) -
build-logic/kotlin-dsl/src/main/kotlin/gradlebuild/kotlindsl/generator/tasks/GenerateKotlinExtensionsForGradleApi.kt
parentFile.mkdirs() } private fun hashTypeSourceName(typeSourceName: String): String = Hashing.hashString(typeSourceName).toCompactString() private val GradleApiMetadata.apiSpec: (String) -> Boolean get() = { sourceName -> val relativeSourcePath = relativeSourcePathOf(sourceName)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 15:02:26 UTC 2023 - 5K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheKey.kt
private val encryptionConfiguration: EncryptionConfiguration ) { val string: String by unsafeLazy { Hashing.md5().newHasher().apply { putCacheKeyComponents() }.hash().toCompactString() } override fun toString() = string override fun hashCode(): Int = string.hashCode() override fun equals(other: Any?): Boolean = (other as? ConfigurationCacheKey)?.string == string
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 4.7K bytes - Viewed (0) -
platforms/software/version-control/src/main/java/org/gradle/vcs/internal/services/DefaultVersionControlRepositoryFactory.java
String prefix = repoName.length() <= 9 ? repoName : repoName.substring(0, 10); String versionId = prefix + "_" + hashString(getUniqueId() + "-" + ref.getCanonicalId()).toCompactString(); File baseDir = new File(cacheAccess.getBaseDir(), versionId); File workingDir = new File(baseDir, repoName); GFileUtils.mkdirs(workingDir);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 18:35:55 UTC 2024 - 6.4K bytes - Viewed (0)