Package org.apache.maven.plugins.clean
Interface Selector
- All Known Implementing Classes:
GlobSelector
interface Selector
Determines whether a path is selected for deletion. The pathnames used for method parameters will be relative to some
base directory and use
File.separatorChar
as separator.-
Method Summary
Modifier and TypeMethodDescriptionboolean
couldHoldSelected
(String pathname) Determines whether a directory could contain selected paths.boolean
isSelected
(String pathname) Determines whether a path is selected for deletion.
-
Method Details
-
isSelected
Determines whether a path is selected for deletion.- Parameters:
pathname
- The pathname to test, must not benull
.- Returns:
true
if the given path is selected for deletion,false
otherwise.
-
couldHoldSelected
Determines whether a directory could contain selected paths.- 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..
-