Class DefaultPathMatcherFactory
java.lang.Object
org.apache.maven.impl.DefaultPathMatcherFactory
- All Implemented Interfaces:
org.apache.maven.api.Service, org.apache.maven.api.services.PathMatcherFactory
@Named
@Singleton
public class DefaultPathMatcherFactory
extends Object
implements org.apache.maven.api.services.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 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 interfaceorg.apache.maven.api.services.PathMatcherFactory
-
createExcludeOnlyMatcher
@Nonnull public PathMatcher createExcludeOnlyMatcher(@Nonnull Path baseDirectory, Collection<String> excludes, boolean useDefaultExcludes) - Specified by:
createExcludeOnlyMatcherin interfaceorg.apache.maven.api.services.PathMatcherFactory
-
deriveDirectoryMatcher
- Specified by:
deriveDirectoryMatcherin interfaceorg.apache.maven.api.services.PathMatcherFactory
-
includesAll
- Specified by:
includesAllin interfaceorg.apache.maven.api.services.PathMatcherFactory
-