Package org.apache.maven.plugins.clean
Class GlobSelector
java.lang.Object
org.apache.maven.plugins.clean.GlobSelector
- All Implemented Interfaces:
Selector
Selects paths based on Ant-like glob patterns.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGlobSelector
(String[] includes, String[] excludes) GlobSelector
(String[] includes, String[] excludes, boolean useDefaultExcludes) -
Method Summary
Modifier and TypeMethodDescriptionprivate static String[]
addDefaultExcludes
(String[] excludes, boolean useDefaultExcludes) boolean
couldHoldSelected
(String pathname) Determines whether a directory could contain selected paths.private static boolean
boolean
isSelected
(String pathname) Determines whether a path is selected for deletion.private static String
normalizePattern
(String pattern) private static String[]
normalizePatterns
(String[] patterns) toString()
private static String
-
Field Details
-
includes
-
excludes
-
str
-
-
Constructor Details
-
GlobSelector
-
GlobSelector
-
-
Method Details
-
toString
-
addDefaultExcludes
-
normalizePatterns
-
normalizePattern
-
isSelected
Description copied from interface:Selector
Determines whether a path is selected for deletion.- Specified by:
isSelected
in interfaceSelector
- Parameters:
pathname
- The pathname to test, must not benull
.- Returns:
true
if the given path is selected for deletion,false
otherwise.
-
isMatched
-
couldHoldSelected
Description copied from interface:Selector
Determines whether a directory could contain selected paths.- Specified by:
couldHoldSelected
in interfaceSelector
- Parameters:
pathname
- The directory pathname to test, must not benull
.- Returns:
true
if the given directory might contain selected paths,false
if the directory will definitively not contain selected paths..
-
toString
-