- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for readRegularFileContentHash (0.44 sec)
-
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/main/java/org/gradle/language/nativeplatform/internal/incremental/IncrementalCompileFilesFactory.java
/** * @return true if this source file requires recompilation, false otherwise. */ private boolean visitSourceFile(File sourceFile) { return fileSystemAccess.readRegularFileContentHash(sourceFile.getAbsolutePath()) .map(fileContent -> { SourceFileState previousState = previous.getState(sourceFile); if (previousState != null) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 14.6K 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) -
platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/DefaultSourceIncludesResolver.java
return contents.computeIfAbsent(includePath, key -> { File candidate = normalizeIncludePath(searchDir, includePath); return fileSystemAccess.readRegularFileContentHash(candidate.getAbsolutePath()) .map(contentHash -> (CachedIncludeFile) new SystemIncludeFile(candidate, key, contentHash)) .orElse(MISSING_INCLUDE_FILE); });
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 24.4K bytes - Viewed (0)