Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for findSnapshot (0.14 sec)

  1. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/vfs/impl/AbstractVirtualFileSystemTest.groovy

            instant.invalidated < instant.snapshottingFinished
            !vfs.findSnapshot(location).present
            !vfs.findSnapshot("${location}/some/child").present
            !vfs.findSnapshot("${location}/some/child2").present
            vfs.findSnapshot("${location}/other/child").present
            vfs.findSnapshot("${location}/other/child2").present
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/vfs/impl/DefaultFileSystemAccess.java

            Supplier<T> readFromDisk
        ) {
            return virtualFileSystem.findSnapshot(location)
                .map(snapshotProcessor)
                // Avoid snapshotting the same location at the same time
                .orElseGet(() -> producingSnapshots.guardByKey(location,
                    () -> virtualFileSystem.findSnapshot(location)
                        .map(snapshotProcessor)
                        .orElseGet(readFromDisk)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:35 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/vfs/impl/AbstractVirtualFileSystem.java

                SnapshotHierarchy currentRoot = root;
                root = updateFunction.apply(currentRoot);
            });
        }
    
        @Override
        public Optional<FileSystemLocationSnapshot> findSnapshot(String absolutePath) {
            return root.findSnapshot(absolutePath);
        }
    
        @Override
        public Optional<MetadataSnapshot> findMetadata(String absolutePath) {
            return root.findMetadata(absolutePath);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  4. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/vfs/impl/DefaultSnapshotHierarchyTest.groovy

                .store("/other/just-checking", directorySnapshotForPath("/other/just-checking"), diffListener)
    
            expect:
            set.findSnapshot(firstPath).present
            set.findSnapshot(secondPath).present
            set.findMetadata("/").get().type == FileType.Directory
            !set.findSnapshot("/").present
    
            when:
            def invalidated = set.invalidate(firstPath, diffListener)
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 32.4K bytes
    - Viewed (0)
  5. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/vfs/VirtualFileSystem.java

    import java.util.stream.Stream;
    
    public interface VirtualFileSystem {
    
        /**
         * Returns the snapshot stored at the absolute path if it exists in the VFS.
         */
        Optional<FileSystemLocationSnapshot> findSnapshot(String absolutePath);
    
        /**
         * Returns the metadata stored at the absolute path if it exists.
         */
        Optional<MetadataSnapshot> findMetadata(String absolutePath);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/SnapshotHierarchy.java

         */
        Optional<MetadataSnapshot> findMetadata(String absolutePath);
    
        /**
         * Returns the snapshot stored at the absolute path if one exists.
         */
        default Optional<FileSystemLocationSnapshot> findSnapshot(String absolutePath) {
            return findMetadata(absolutePath)
                .filter(FileSystemLocationSnapshot.class::isInstance)
                .map(FileSystemLocationSnapshot.class::cast);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top