- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for readRegularFileContentHash (0.48 sec)
-
subprojects/core/src/test/groovy/org/gradle/cache/internal/DefaultFileContentCacheFactoryTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 02:21:10 UTC 2024 - 8.4K bytes - Viewed (0) -
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) -
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) -
platforms/core-execution/snapshots/src/main/java/org/gradle/internal/vfs/impl/DefaultFileSystemAccess.java
location, Function.identity(), () -> snapshot(location, SnapshottingFilter.EMPTY) ); } @Override public Optional<HashCode> readRegularFileContentHash(String location) { return virtualFileSystem.findMetadata(location) .<Optional<FileSystemLocationSnapshot>>flatMap(snapshot -> { if (snapshot.getType() != FileType.RegularFile) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 16:02:35 UTC 2024 - 11.1K bytes - Viewed (0) -
platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/IncrementalCompileProcessorTest.groovy
} } } } private HashCode getContentHash(File file) { fileSystemAccess.invalidate([file.absolutePath]) return fileSystemAccess.readRegularFileContentHash(file.getAbsolutePath()) .orElse(new MissingFileSnapshot(file.getAbsolutePath(), file.getName(), AccessType.DIRECT).hash) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 08 15:31:28 UTC 2024 - 13.7K bytes - Viewed (0)