Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for readRegularFileContentHash (0.43 sec)

  1. subprojects/core/src/test/groovy/org/gradle/cache/internal/DefaultFileContentCacheFactoryTest.groovy

            when:
            def result = cache.get(file)
    
            then:
            result == 12
    
            and:
            1 * fileSystemAccess.readRegularFileContentHash(file.absolutePath) >> Optional.empty()
            1 * calculator.calculate(file, false) >> 12
            0 * _
    
            when:
            result = cache.get(file)
    
            then:
            result == 12
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/vfs/FileSystemAccess.java

        /**
         * Visits the hash of the content of the file only if the file is a regular file.
         *
         * @return the visitor function applied to the found snapshot.
         */
        Optional<HashCode> readRegularFileContentHash(String location);
    
        /**
         * Reads the hierarchy of files at the given location.
         */
        FileSystemLocationSnapshot read(String location);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 15 08:29:37 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/cache/internal/DefaultFileContentCacheFactory.java

                locationCache.clear();
            }
    
            @Override
            public V get(File file) {
                return locationCache.computeIfAbsent(file,
                    location -> fileSystemAccess.readRegularFileContentHash(location.getAbsolutePath())
                        .map(contentHash -> contentCache.get(contentHash, key -> calculator.calculate(location, true))
                    ).orElseGet(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:51:31 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top