Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for withTempFile (0.3 sec)

  1. platforms/core-execution/build-cache-local/src/main/java/org/gradle/caching/local/internal/DirectoryBuildCacheService.java

        public void storeLocally(BuildCacheKey key, File file) {
            cache.storeLocally(((BuildCacheKeyInternal) key).getHashCodeInternal(), file);
        }
    
        @Override
        public void withTempFile(HashCode key, Consumer<? super File> action) {
            cache.withTempFile(key, action);
        }
    
        @Override
        public void close() throws IOException {
            cache.close();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 07 14:32:44 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. platforms/core-execution/build-cache-local/src/main/java/org/gradle/caching/local/internal/DirectoryBuildCache.java

            }
            fileAccessTracker.markAccessed(targetFile);
        }
    
        @Override
        public void withTempFile(HashCode key, Consumer<? super File> action) {
            persistentCache.withFileLock(() -> tempFileStore.withTempFile(key, action));
        }
    
        @Override
        public void close() {
            persistentCache.close();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:53 UTC 2024
    - 7K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache/src/main/java/org/gradle/caching/local/internal/BuildCacheTempFileStore.java

        String PARTIAL_FILE_SUFFIX = ".part";
    
        /**
         * Run the given action with a temp file allocated based on the given cache key.
         * The temp file will be deleted once the action is completed.
         */
        void withTempFile(HashCode key, Consumer<? super File> action);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 16:23:39 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. platforms/core-execution/build-cache/src/main/java/org/gradle/caching/local/internal/DefaultBuildCacheTempFileStore.java

        public DefaultBuildCacheTempFileStore(TemporaryFileFactory temporaryFileFactory) {
            this.temporaryFileFactory = temporaryFileFactory;
        }
    
        @Override
        public void withTempFile(HashCode key, Consumer<? super File> action) {
            File tempFile = temporaryFileFactory.createTemporaryFile(key + "-", PARTIAL_FILE_SUFFIX);
            try {
                action.accept(tempFile);
            } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 07 14:32:44 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. platforms/core-execution/build-cache/src/main/java/org/gradle/caching/internal/controller/DefaultBuildCacheController.java

            if (!remote.canLoad()) {
                return Optional.empty();
            }
            AtomicReference<Optional<BuildCacheLoadResult>> result = new AtomicReference<>(Optional.empty());
            tmp.withTempFile(((BuildCacheKeyInternal) key).getHashCodeInternal(), file -> {
                Optional<BuildCacheLoadResult> remoteResult;
                try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 08:29:47 UTC 2024
    - 14K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/caching/internal/controller/DefaultBuildCacheControllerFactoryTest.groovy

            void store(BuildCacheKey key, BuildCacheEntryWriter writer) throws BuildCacheException {
            }
    
            @Override
            void close() {
    
            }
    
            @Override
            void withTempFile(HashCode key, Consumer<? super File> action) {
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 22:46:34 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. platforms/core-execution/build-cache/src/test/groovy/org/gradle/caching/internal/controller/DefaultBuildCacheControllerTest.groovy

            identity >> ":test"
            type >> CacheableEntity
        }
        Duration executionTime = Duration.ofMillis(123)
        Map<String, FileSystemSnapshot> snapshots = [:]
    
        def local = Mock(Local) {
            withTempFile(_ as HashCode, _ as Consumer) >> { key, action ->
                action.accept(tmpDir.file("file"))
            }
        }
        def localPush = true
        def remote = Mock(BuildCacheService)
        def remotePush = true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 22:18:26 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top