- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for PathMatcher (0.2 sec)
-
platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/pattern/PathMatcher.java
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.api.internal.file.pattern; public interface PathMatcher { /** * Returns the minimum number of segments a path must have to satisfy this matcher. */ int getMinSegments(); /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 1.3K bytes - Viewed (0) -
platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/pattern/PatternMatcherFactory.java
private final PathMatcher pathMatcher; public DefaultPatternMatcher(boolean partialMatchDirs, PathMatcher pathMatcher) { this.partialMatchDirs = partialMatchDirs; this.pathMatcher = pathMatcher; } @VisibleForTesting PathMatcher getPathMatcher() { return pathMatcher; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 3.7K bytes - Viewed (0) -
platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/IgnoringResourceFilter.java
ImmutableSet.Builder<PathMatcher> builder = ImmutableSet.builder(); for (String ignore : ignores) { PathMatcher matcher = PatternMatcherFactory.compile(true, ignore); builder.add(matcher); } this.ignoreMatchers = builder.build(); } private boolean shouldBeIgnored(String[] relativePath) { for (PathMatcher ignoreSpec : ignoreMatchers) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 15:09:49 UTC 2023 - 2.2K bytes - Viewed (0) -
pilot/pkg/security/authz/matcher/header.go
Name: k, HeaderMatchSpecifier: &routepb.HeaderMatcher_StringMatch{ StringMatch: StringMatcherExact(v, true), }, } } // PathMatcher creates a path matcher for a path. func PathMatcher(path string) *matcher.PathMatcher { return &matcher.PathMatcher{ Rule: &matcher.PathMatcher_Path{ Path: StringMatcher(path), }, }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 17 22:42:11 UTC 2023 - 3.7K bytes - Viewed (0) -
pilot/pkg/security/authz/matcher/header_test.go
Name string V string Expect *matcher.PathMatcher }{ { Name: "exact match", V: "/productpage", Expect: &matcher.PathMatcher{ Rule: &matcher.PathMatcher_Path{ Path: StringMatcherExact("/productpage", false), }, }, }, { Name: "prefix match", V: "/prefix*", Expect: &matcher.PathMatcher{ Rule: &matcher.PathMatcher_Path{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Aug 17 22:42:11 UTC 2023 - 6.3K bytes - Viewed (0) -
platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/pattern/FixedStepPathMatcher.java
*/ package org.gradle.api.internal.file.pattern; public class FixedStepPathMatcher implements PathMatcher { private final PatternStep step; private final PathMatcher next; private final int minSegments; private final int maxSegments; public FixedStepPathMatcher(PatternStep step, PathMatcher next) { this.step = step; this.next = next; minSegments = 1 + next.getMinSegments();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 2.4K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilter.java
return predicates.stream().noneMatch(p -> p.test(artifact)); } private static Predicate<Artifact> toPredicate(Exclusion exclusion) { PathMatcher groupId = FileSystems.getDefault().getPathMatcher("glob:" + exclusion.getGroupId()); PathMatcher artifactId = FileSystems.getDefault().getPathMatcher("glob:" + exclusion.getArtifactId());
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Aug 29 15:25:58 UTC 2023 - 3K bytes - Viewed (0) -
platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/pattern/GreedyPathMatcher.java
* limitations under the License. */ package org.gradle.api.internal.file.pattern; public class GreedyPathMatcher implements PathMatcher { private final PathMatcher next; public GreedyPathMatcher(PathMatcher next) { this.next = next; } @Override public String toString() { return "{greedy next: " + next + "}"; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 1.6K bytes - Viewed (0) -
platforms/core-runtime/files/src/test/groovy/org/gradle/api/internal/file/pattern/GreedyPathMatcherTest.groovy
package org.gradle.api.internal.file.pattern import spock.lang.Specification class GreedyPathMatcherTest extends Specification { def "calculates min and max number of segments"() { def next = Stub(PathMatcher) { getMinSegments() >> 2 getMaxSegments() >> 3 } def matcher = new GreedyPathMatcher(next) expect: matcher.minSegments == 2
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 2.3K bytes - Viewed (0) -
platforms/core-runtime/files/src/test/groovy/org/gradle/api/internal/file/pattern/FixedStepPathMatcherTest.groovy
package org.gradle.api.internal.file.pattern import spock.lang.Specification class FixedStepPathMatcherTest extends Specification { def "calculates min and max number of segments"() { def next = Stub(PathMatcher) { getMinSegments() >> 2 getMaxSegments() >> 3 } def matcher = new FixedStepPathMatcher(Stub(PatternStep), next) expect: matcher.minSegments == 3
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 3.8K bytes - Viewed (0)