Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for moveIntoCache (0.21 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/internal/resource/transfer/CacheAwareExternalResourceAccessor.java

            /**
             * Called when a resource is to be cached. Should *move* the given file into the appropriate location and return a handle to the file.
             */
            LocallyAvailableResource moveIntoCache(File downloadedResource);
        }
    
        abstract class DefaultResourceFileStore<K> implements ResourceFileStore {
    
            private final FileStore<K> delegate;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/internal/resource/transfer/DefaultCacheAwareExternalResourceAccessor.java

            }
    
            // Move into cache
            try {
                return moveIntoCache(source, downloadAction.getDestination(), fileStore, downloadAction.getMetaData());
            } finally {
                downloadAction.getDestination().delete();
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/transfer/DefaultCacheAwareExternalResourceAccessorTest.groovy

            1 * remoteResource.withContentIfPresent(_) >> { ExternalResource.ContentAndMetadataAction a ->
                a.execute(new ByteArrayInputStream(), metaData)
            }
    
            and:
            1 * fileStore.moveIntoCache(tempFile) >> localResource
            1 * index.store("thing", cachedFile, metaData)
            1 * fileRepository.resource(cachedFile, location.uri, metaData) >> cachedResource
            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)
Back to top