Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for VfsRelativePath (0.2 sec)

  1. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/VfsRelativePath.java

         */
        public static VfsRelativePath of(String absolutePath) {
            String normalizedRoot = normalizeRoot(absolutePath);
            return VfsRelativePath.of(normalizedRoot, determineOffset(normalizedRoot));
        }
    
        @VisibleForTesting
        static VfsRelativePath of(String absolutePath, int offset) {
            return new VfsRelativePath(absolutePath, offset);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/execution/plan/ExecutionNodeAccessHierarchy.java

         */
        public synchronized void recordNodeAccessingLocations(Node node, Iterable<String> accessedLocations) {
            for (String location : accessedLocations) {
                VfsRelativePath relativePath = VfsRelativePath.of(location);
                root = root.recordValue(relativePath, new DefaultNodeAccess(node));
            }
        }
    
        /**
         * Records that a node accesses the fileTreeRoot with a filter.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 12 20:10:34 UTC 2022
    - 6.9K bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/vfs/impl/DefaultSnapshotHierarchy.java

                    throw new AssertionError("Unknown case sensitivity: " + caseSensitivity);
            }
        }
    
        @Override
        public Optional<MetadataSnapshot> findMetadata(String absolutePath) {
            VfsRelativePath relativePath = VfsRelativePath.of(absolutePath);
            if (relativePath.isEmpty()) {
                return rootNode.getSnapshot();
            }
            return rootNode.getSnapshot(relativePath, caseSensitivity);
        }
    
        @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)
  4. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/vfs/impl/VersionHierarchyRoot.java

         * Version updates happen via {@link #updateVersion(String)}.
         */
        public long getVersion(String location) {
            VfsRelativePath relativePath = VfsRelativePath.of(location);
            return relativePath.isEmpty()
                ? rootNode.getMaxVersionInHierarchy()
                : rootNode.getVersion(relativePath, caseSensitivity);
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/ChildMap.java

                RESULT handleAsDescendantOfChild(VfsRelativePath targetPath, String childPath, T child);
                RESULT handleAsAncestorOfChild(VfsRelativePath targetPath, String childPath, T child);
                RESULT handleExactMatchWithChild(VfsRelativePath targetPath, String childPath, T child);
                RESULT handleSiblingOfChild(VfsRelativePath targetPath, String childPath, T child, int commonPrefixLength);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 13:19:32 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  6. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/VfsRelativePathTest.groovy

            '/a/b/c/'              | 'a/b/c'
            ''                     | ''
        }
    
        def "'#relativePath' fromChild '#child' is '#result'"() {
            expect:
            VfsRelativePath.of(relativePath).pathFromChild(child).asString == result
            VfsRelativePath.of(child).pathToChild(relativePath) == result
    
            where:
            relativePath | child | result
            "a/b"        | "a"   | "b"
            "a/b"        | ""    | "a/b"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/execution/plan/ValuedVfsHierarchyTest.groovy

            def hierarchy = emptyHierarchy()
            hierarchy = hierarchy.recordValue(VfsRelativePath.of("some/location"), 1)
            hierarchy = hierarchy.recordValue(VfsRelativePath.of("some/other/location"), 2)
            hierarchy = hierarchy.recordValue(VfsRelativePath.of("some/location/intermediate/child/sub1/leaf1"), 5)
            hierarchy = hierarchy.recordValue(VfsRelativePath.of("some/location/intermediate/child/sub1/leaf2"), 6)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 28 17:21:57 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/execution/plan/ValuedVfsHierarchy.java

        }
    
        /**
         * Visits the values which are attached to ancestors and children of the given location.
         */
        public void visitValues(String location, ValueVisitor<T> visitor) {
            VfsRelativePath relativePath = VfsRelativePath.of(location);
            if (relativePath.isEmpty()) {
                visitAllValues(visitor);
            } else {
                visitValuesRelatedTo(relativePath, visitor);
            }
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 28 17:23:29 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  9. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/AbstractFileSystemLocationSnapshot.java

            return Optional.of(this);
        }
    
        @Override
        public Optional<MetadataSnapshot> getSnapshot(VfsRelativePath relativePath, CaseSensitivity caseSensitivity) {
            return getChildSnapshot(relativePath, caseSensitivity);
        }
    
        protected Optional<MetadataSnapshot> getChildSnapshot(VfsRelativePath relativePath, CaseSensitivity caseSensitivity) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 13:19:32 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  10. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/AbstractStorePathRelationshipHandler.java

        @Override
        public ChildMap<T> handleAsDescendantOfChild(VfsRelativePath targetPath, String childPath, T child) {
            T newChild = handler.handleAsDescendantOfChild(targetPath.pathFromChild(childPath), child);
            return withReplacedChild(newChild);
        }
    
        @Override
        public ChildMap<T> handleAsAncestorOfChild(VfsRelativePath targetPath, String childPath, T child) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top