- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for cachedFile (0.2 sec)
-
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/cached/AbstractCachedIndexTest.groovy
def "tracks access to looked up files"() { given: def cachedFile = temporaryFolder.createFile("foo.txt") when: cachedIndex.storeInternal("foo", cachedItem(cachedFile)) def item = cachedIndex.lookup("foo") then: item.cachedFile == cachedFile 1 * fileAccessTracker.markAccessed(cachedFile) } def "clears entries for deleted files"() { given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/internal/resource/cached/DefaultCachedExternalResource.java
private final File cachedFile; private final long cachedAt; private final ExternalResourceMetaData externalResourceMetaData; public DefaultCachedExternalResource(File cachedFile, long cachedAt, ExternalResourceMetaData externalResourceMetaData) { this.cachedFile = cachedFile; this.cachedAt = cachedAt;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 2.1K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/classpath/DefaultCachedClasspathTransformerTest.groovy
def cachedFile = testDir.file("cached/beb67f2a57f2bd7d23946b93b19440d3/thing.jar") when: def cachedClasspath = transformer.transform(classpath, BuildLogic) then: cachedClasspath.asFiles == [cachedFile] cachedFile.assertIsFile() and: 1 * fileAccessTimeJournal.setLastAccessTime(cachedFile.parentFile, _)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:51:15 UTC 2024 - 20.8K bytes - Viewed (0) -
platforms/core-execution/build-cache-local/src/test/groovy/org/gradle/caching/local/internal/DirectoryBuildCacheTest.groovy
cachedFile.absolutePath.startsWith(cacheDir.absolutePath) when: def loaded = cache.load(key) { input -> assert input.text == "foo" } then: 1 * fileAccessTracker.markAccessed(cachedFile) loaded } def "handles storing twice"() { File cachedFile = null given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 07 14:32:44 UTC 2024 - 4.4K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/CopyingClasspathFileTransformer.java
return source; } // Copy the file into the cache File cachedFile = new File(cacheDir, "o_" + sourceSnapshot.getHash().toString() + '/' + source.getName()); if (!cachedFile.isFile()) { // Just copy the jar GFileUtils.copyFile(source, cachedFile); } return cachedFile; } @Override public ClasspathFileHasher getFileHasher() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Feb 07 20:14:01 UTC 2024 - 2.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/modulecache/artifacts/DefaultCachedArtifact.java
public class DefaultCachedArtifact implements CachedArtifact, Serializable { private final File cachedFile; private final long cachedAt; private final HashCode descriptorHash; private final List<String> attemptedLocations; public DefaultCachedArtifact(File cachedFile, long cachedAt, HashCode descriptorHash) { this.cachedFile = cachedFile; this.cachedAt = cachedAt; this.descriptorHash = descriptorHash;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 2K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/transfer/DefaultCacheAwareExternalResourceAccessorTest.groovy
localCandidate.file >> candidate cached.cachedFile >> cachedFile 0 * _._ and: 1 * fileStore.moveIntoCache(tempFile) >> localResource 1 * index.store("thing", cachedFile, remoteMetaData) 1 * fileRepository.resource(cachedFile, location.uri, remoteMetaData) >> resultResource 0 * _._ }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jan 02 17:19:47 UTC 2024 - 19.1K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ReuseArchiveIntegrationTest.groovy
""" when: succeeds("extract") then: file("build/extract/hello.txt").text == "hello" cachedFile.assertExists() otherFile.assertDoesNotExist() when: // write into the directory used by the extracted zip file cachedFile.text = "some incorrect pre-existing pre-expanded content" otherFile.touch() and: succeeds "extract"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 03 15:21:23 UTC 2024 - 3.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/modulecache/artifacts/DefaultModuleArtifactCacheTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 6.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/cached/DefaultArtifactResolutionCacheTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3.5K bytes - Viewed (0)