Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for hasDescendantsUnder (0.21 sec)

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

            !s.hasDescendantsUnder(sibling.absolutePath)
            collectSnapshots(s, sibling.absolutePath).empty
    
            def intermediate = dir1.file("dir5/and")
            s.hasDescendantsUnder(intermediate.absolutePath)
            collectSnapshots(s, intermediate.absolutePath)*.absolutePath == [dir1dir5.absolutePath]
    
    
            def anotherSibling = dir1.file("dir5/and/different")
            !s.hasDescendantsUnder(anotherSibling.absolutePath)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 32.4K bytes
    - Viewed (0)
  2. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/vfs/impl/DefaultSnapshotHierarchy.java

            if (relativePath.isEmpty()) {
                return rootNode.getSnapshot();
            }
            return rootNode.getSnapshot(relativePath, caseSensitivity);
        }
    
        @Override
        public boolean hasDescendantsUnder(String absolutePath) {
            return getNode(absolutePath).map(FileSystemNode::hasDescendants)
                .orElse(false);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/SnapshotHierarchy.java

            return findMetadata(absolutePath)
                .filter(FileSystemLocationSnapshot.class::isInstance)
                .map(FileSystemLocationSnapshot.class::cast);
        }
    
        boolean hasDescendantsUnder(String absolutePath);
    
        /**
         * Returns a hierarchy augmented by the information of the snapshot at the absolute path.
         */
        @CheckReturnValue
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/impl/HierarchicalFileWatcherUpdater.java

            return watchableHierarchies.stream().anyMatch(watchableHierarchy -> {
                boolean hasSnapshotsToWatch = root.hasDescendantsUnder(watchableHierarchy.getPath());
                if (watchedFiles.contains(watchableHierarchy)) {
                    // Need to stop watching this hierarchy
                    return !hasSnapshotsToWatch;
                } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top