- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 458 for hashOf (0.13 sec)
-
subprojects/core/src/main/java/org/gradle/internal/classpath/InstrumentingClasspathFileTransformer.java
transform.applyConfigurationTo(hasher); return hasher.hash(); } private static ClasspathFileHasher createFileHasherWithConfig(HashCode configHash, ClasspathFileHasher fileHasher) { return sourceSnapshot -> { Hasher hasher = Hashing.newHasher(); hasher.putHash(configHash); hasher.putHash(fileHasher.hashOf(sourceSnapshot));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Feb 27 13:36:38 UTC 2024 - 6K bytes - Viewed (0) -
pkg/registry/rbac/validation/rule_test.go
io.WriteString(hash, s) } } } writeStrings(p.Verbs, p.APIGroups, p.Resources, p.ResourceNames, p.NonResourceURLs) return string(hash.Sum(nil)) } // byHash sorts a set of policy rules by a hash of its fields type byHash []rbacv1.PolicyRule func (b byHash) Len() int { return len(b) } func (b byHash) Less(i, j int) bool { return hashOf(b[i]) < hashOf(b[j]) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 7.9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/ClasspathFileHasher.java
*/ package org.gradle.internal.classpath; import org.gradle.api.NonNullApi; import org.gradle.internal.hash.HashCode; import org.gradle.internal.snapshot.FileSystemLocationSnapshot; @NonNullApi @FunctionalInterface public interface ClasspathFileHasher { HashCode hashOf(FileSystemLocationSnapshot sourceSnapshot);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 15:13:40 UTC 2023 - 936 bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/InterpreterTest.kt
} on { compilationClassPathOf(any()) } doAnswer { testRuntimeClassPath } on { hashOf(eq(testRuntimeClassPath)) } doReturn compilationClassPathHash on { accessorsClassPathFor(any()) } doReturn accessorsClassPath on { hashOf(eq(accessorsClassPath)) } doReturn accessorsClassPathHash on {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 01 13:09:45 UTC 2024 - 9.2K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/precompile/PrecompiledScriptDependenciesResolver.kt
import kotlin.script.dependencies.ScriptDependenciesResolver class PrecompiledScriptDependenciesResolver : ScriptDependenciesResolver { companion object { fun hashOf(charSequence: CharSequence) = hashOfNormalisedString(convertLineSeparatorsToUnix(charSequence.toString())) fun hashOfNormalisedString(charSequence: CharSequence) =
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 3.2K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl-tooling-builders/src/main/kotlin/org/gradle/kotlin/dsl/tooling/builders/KotlinBuildScriptModelBuilder.kt
private fun implicitImportsFrom(file: File): List<String> = file.takeIf { it.isFile }?.readLines() ?: emptyList() private fun hashOf(scriptFile: File) = PrecompiledScriptDependenciesResolver.hashOf(scriptFile.readText()) private fun projectScriptModelBuilder( scriptFile: File?, project: ProjectInternal ) = KotlinScriptTargetModelBuilder(
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 02 11:06:08 UTC 2024 - 17.8K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Interpreter.kt
val programId = ProgramId( scriptTemplateId, sourceHash, parentClassLoader, host.hashOf(accessorsClassPath), host.hashOf(compileClassPath), host.compilerOptions ) val cachedProgram = host.cachedClassFor(programId) if (cachedProgram != null) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 26 19:59:56 UTC 2023 - 21.1K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/testFixtures/kotlin/org/gradle/kotlin/dsl/fixtures/SimplifiedKotlinScriptEvaluator.kt
import org.gradle.internal.classloader.ClasspathUtil import org.gradle.internal.classpath.ClassPath import org.gradle.internal.classpath.DefaultClassPath import org.gradle.internal.hash.HashCode import org.gradle.internal.hash.Hashing import org.gradle.internal.hash.TestHashCodes import org.gradle.internal.resource.StringTextResource import org.gradle.internal.service.DefaultServiceRegistry import org.gradle.internal.service.ServiceRegistry
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 26 19:59:56 UTC 2023 - 7.9K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/provider/KotlinScriptEvaluator.kt
.start(operationDescription, operationDescription) return AutoCloseable { operation.completed() } } override fun hashOf(classPath: ClassPath): HashCode = classpathHasher.hash(classPath) override fun applyPluginsTo(scriptHost: KotlinScriptHost<*>, pluginRequests: PluginRequests) { pluginRequestsHandler.handle( pluginRequests,
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 10:23:24 UTC 2024 - 17.1K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/AccessorFragments.kt
} private fun MethodVisitor.invokeRuntime(function: String, desc: String) { INVOKESTATIC(InternalName("org/gradle/kotlin/dsl/accessors/runtime/RuntimeKt"), function, desc) } private fun hashOf(accessorSpec: TypedAccessorSpec) = hashString(accessorSpec.toString()).toCompactString() private fun TypeAccessibility.Accessible.internalName() = type.value.concreteClass.internalName
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 01 13:09:46 UTC 2024 - 40.2K bytes - Viewed (0)