- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 138 for tophash (0.17 sec)
-
platforms/core-runtime/files/src/main/java/org/gradle/internal/file/impl/SingleDepthFileAccessTracker.java
Preconditions.checkArgument(depth > 0, "depth must be > 0: %s", depth); this.baseDir = baseDir.toPath().toAbsolutePath(); this.startNameIndex = this.baseDir.getNameCount(); this.endNameIndex = startNameIndex + depth; } @Override public void markAccessed(File file) { Path path = file.toPath().toAbsolutePath(); if (path.getNameCount() >= endNameIndex && path.startsWith(baseDir)) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 2K bytes - Viewed (0) -
cmd/erasure-sets_test.go
// Tests hashing order to be consistent. for i, testCase := range testCases { if sipHashElement := hashKey("SIPMOD", testCase.objectName, 200, testUUID); sipHashElement != testCase.sipHash { t.Errorf("Test case %d: Expected \"%v\" but failed \"%v\"", i+1, testCase.sipHash, sipHashElement) } } if sipHashElement := hashKey("SIPMOD", "This will fail", -1, testUUID); sipHashElement != -1 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Feb 12 07:21:56 UTC 2024 - 6.9K bytes - Viewed (0) -
platforms/jvm/toolchains-jvm/src/test/groovy/org/gradle/jvm/toolchain/install/internal/SecureFileDownloaderTest.groovy
given: def downloader = new SecureFileDownloader(transportFactory) def destinationFile = new File(Files.createTempDirectory(temporaryFolder.toPath(), null).toFile(), "target") when: URI uri = URI.create("https://foo") downloader.download(uri, destinationFile, downloader.getResourceFor(uri, Collections.emptyList())) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jul 28 16:17:59 UTC 2023 - 3.6K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/verify.go
dirErr != nil && errors.Is(dirErr, fs.ErrNotExist) { // Nothing downloaded yet. Nothing to verify. return nil } errs = append(errs, fmt.Errorf("%s %s: missing ziphash: %v", mod.Path, mod.Version, err)) return errs } h := string(bytes.TrimSpace(data)) if zipErr != nil && errors.Is(zipErr, fs.ErrNotExist) { // ok } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 16:56:35 UTC 2024 - 3.6K bytes - Viewed (0) -
platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/MetaInfAwareClasspathResourceHasher.java
} @Override boolean filter(ZipEntryContext context) { return !context.getEntry().isDirectory() && isManifestFile(context.getEntry().getName()); } @Override Optional<HashCode> tryHash(RegularFileSnapshotContext snapshotContext) { return Optional.of(snapshotContext) .map(context -> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 15:09:49 UTC 2023 - 5.5K bytes - Viewed (0) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/Clients.kt
import javax.net.ssl.SSLSocketFactory import okhttp3.ConnectionSpec import okhttp3.OkHttp import okhttp3.survey.types.Client import okhttp3.survey.types.SuiteId import okio.FileSystem import okio.Path.Companion.toPath import org.conscrypt.Conscrypt fun currentOkHttp(ianaSuites: IanaSuites): Client { return Client( userAgent = "OkHttp", version = OkHttp.VERSION, enabled =
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Tue Apr 02 01:44:15 UTC 2024 - 2.5K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/context/DaemonCompatibilitySpec.java
File potentialJava = Jvm.forHome(potentialJavaHome).getJavaExecutable(); File desiredJava = desiredJavaHome.getJavaExecutable(); return Files.isSameFile(potentialJava.toPath(), desiredJava.toPath()); } } catch (IOException e) { // ignore } } return false; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Apr 28 21:41:57 UTC 2024 - 3.8K bytes - Viewed (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/classanalysis/AnalyzeAndShade.kt
val classGraph = classGraph() val jarUri = URI.create("jar:${jarFile.toPath().toUri()}") FileSystems.newFileSystem(jarUri, emptyMap<String, Any>()).use { jarFileSystem -> jarFileSystem.rootDirectories.forEach { visitClassDirectory(it, classGraph, classesDir, manifestFile.toPath(), buildReceipt.toPath()) } } return classGraph } private
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Sep 30 16:17:28 UTC 2023 - 6.6K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/SubprojectsInfo.kt
@DisableCachingByDefault(because = "Abstract super-class, not to be instantiated directly") abstract class SubprojectsInfo : DefaultTask() { private val rootPath = project.layout.projectDirectory.asFile.toPath() private val platformsFolder = project.layout.projectDirectory.dir("platforms") private val subprojectsFolder = project.layout.projectDirectory.dir("subprojects") private
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.9K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl-tooling-builders/src/crossVersionTest/groovy/org/gradle/kotlin/dsl/tooling/builders/r54/AccessorsClassPathModelCrossVersionSpec.groovy
withDefaultSettings() def buildFile = withBuildScript("plugins {\n${plugins.join("\n")}\n}") def classFilePath = accessorsClassFor(buildFile).toPath() return projectDir.toPath().relativize(classFilePath).toFile() } private File accessorsClassFor(File buildFile) { return classPathFor(projectDir, buildFile) .tap { println(it) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 4.1K bytes - Viewed (0)