Package org.apache.maven.impl
Class DefaultPathMatcherFactory
java.lang.Object
org.apache.maven.impl.DefaultPathMatcherFactory
- All Implemented Interfaces:
Service,PathMatcherFactory
@Named
@Singleton
public class DefaultPathMatcherFactory
extends Object
implements PathMatcherFactory
Default implementation of
PathMatcherFactory that creates PathSelector
instances for filtering files based on include/exclude patterns.
This implementation provides Maven's traditional include/exclude pattern behavior, compatible with Maven 3 plugins like maven-compiler-plugin and maven-clean-plugin.
- Since:
- 4.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateExcludeOnlyMatcher(Path baseDirectory, Collection<String> excludes, boolean useDefaultExcludes) createPathMatcher(Path baseDirectory, Collection<String> includes, Collection<String> excludes, boolean useDefaultExcludes) deriveDirectoryMatcher(PathMatcher fileMatcher) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.services.PathMatcherFactory
createIncludeOnlyMatcher, createPathMatcher, isIncludesAll
-
Constructor Details
-
DefaultPathMatcherFactory
public DefaultPathMatcherFactory()
-
-
Method Details
-
createPathMatcher
@Nonnull public PathMatcher createPathMatcher(@Nonnull Path baseDirectory, Collection<String> includes, Collection<String> excludes, boolean useDefaultExcludes) - Specified by:
createPathMatcherin interfacePathMatcherFactory
-
createExcludeOnlyMatcher
@Nonnull public PathMatcher createExcludeOnlyMatcher(@Nonnull Path baseDirectory, Collection<String> excludes, boolean useDefaultExcludes) - Specified by:
createExcludeOnlyMatcherin interfacePathMatcherFactory
-
deriveDirectoryMatcher
- Specified by:
deriveDirectoryMatcherin interfacePathMatcherFactory
-
includesAll
- Specified by:
includesAllin interfacePathMatcherFactory
-