Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 30 for cachedFile (0.16 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedImplementationIntegrationTest.groovy

                        describer.type("in-memory");
                        final Properties data = new Properties();
                        final File cacheFile = new File("cache.bin");
                        if (cacheFile.exists()) {
                            try (InputStream input = new FileInputStream(cacheFile)) {
                                data.load(input);
                            } catch (IOException ex) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 20 12:09:58 UTC 2022
    - 6.6K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/FileBackedBlockStore.java

    public class FileBackedBlockStore implements BlockStore {
        private final File cacheFile;
        private RandomAccessFile file;
        private ByteOutput output;
        private ByteInput input;
        private long nextBlock;
        private Factory factory;
        private long currentFileSize;
    
        public FileBackedBlockStore(File cacheFile) {
            this.cacheFile = cacheFile;
        }
    
        @Override
        public String toString() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache-local/src/integTest/groovy/org/gradle/caching/local/internal/DirectoryBuildCacheCleanupIntegrationTest.groovy

            return "Build cache"
        }
    
        @Override
        void createBuildCacheEntry(String key, File value, long timestamp) {
            File cacheFile = cacheDir.file(key)
            Files.copy(value.toPath(), cacheFile.toPath())
            writeLastFileAccessTimeToJournal(cacheFile, timestamp)
        }
    
        @Override
        boolean existsBuildCacheEntry(String key) {
            cacheDir.file(key).exists()
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:15:24 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ConcurrentDerivationStrategyIntegTest.groovy

                    void execute(ComponentMetadataContext context) {
                        println("Applying rule on \$context.details.id")
                    }
                }
    
                @CacheableRule
                class CachedRule implements ComponentMetadataRule {
                    @Override
                    void execute(ComponentMetadataContext context) {
                        println("Applying rule on \$context.details.id")
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskIntegrationTest.groovy

            when:
            withBuildCache().run("cacheable")
            then:
            def cacheKey = cacheOperations.getCacheKeyForTask(":cacheable")
            def cacheFile = listCacheFiles().find { it.name == cacheKey }
            cacheFile.exists()
            def cacheEntry = new TarTestFixture(cacheFile)
            cacheEntry.assertContainsFile("tree-outputDir/output")
            def metadata = cacheEntry.content("METADATA")
            metadata.contains("type=")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultCacheCoordinator.java

                if (entry == null) {
                    File cacheFile = findCacheFile(parameters);
                    LOG.debug("Creating new cache for {}, path {}, access {}", parameters.getCacheName(), cacheFile, this);
                    Supplier<BTreePersistentIndexedCache<K, V>> indexedCacheFactory = () -> doCreateCache(cacheFile, parameters.getKeySerializer(), parameters.getValueSerializer());
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 01 12:21:15 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  7. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/BTreePersistentIndexedCache.java

        }
    
        public BTreePersistentIndexedCache(File cacheFile, Serializer<K> keySerializer, Serializer<V> valueSerializer,
                                           short maxChildIndexEntries, int maxFreeListEntries) {
            this.cacheFile = cacheFile;
            this.keyHasher = new KeyHasher<K>(keySerializer);
            this.serializer = valueSerializer;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  8. src/go/printer/printer.go

    	return p.fset.PositionFor(pos, false /* absolute position */)
    }
    
    func (p *printer) lineFor(pos token.Pos) int {
    	if pos != p.cachedPos {
    		p.cachedPos = pos
    		p.cachedLine = p.fset.PositionFor(pos, false /* absolute position */).Line
    	}
    	return p.cachedLine
    }
    
    // writeLineDirective writes a //line directive if necessary.
    func (p *printer) writeLineDirective(pos token.Position) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 41.6K bytes
    - Viewed (0)
  9. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/AbstractFileWatcherUpdaterTest.groovy

            0 * _
        }
    
        def "does not watch ignored files in a hierarchy to watch"() {
            def watchableHierarchy = file("watchable").createDir()
            def ignoredFileInHierarchy = watchableHierarchy.file("caches/cacheFile").createFile()
            ignoredForWatching.add(ignoredFileInHierarchy.absolutePath)
            ignoredForWatching.add(ignoredFileInHierarchy.parentFile.absolutePath)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultExclusiveCacheAccessCoordinatorTest.groovy

                @Override
                <K, V> BTreePersistentIndexedCache<K, V> doCreateCache(File cacheFile, Serializer<K> keySerializer, Serializer<V> valueSerializer) {
                    return backingCache
                }
            }
        }
    
        def "acquires lock on open and releases on close when lock mode is shared"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 24K bytes
    - Viewed (0)
Back to top