Package org.jacoco.maven
Class FileFilter
java.lang.Object
org.jacoco.maven.FileFilter
A file filter using includes/excludes patterns.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFileFilter
(List<String> includes, List<String> excludes) Construct a new FileFilter -
Method Summary
Modifier and TypeMethodDescriptionprivate String
buildPattern
(List<String> patterns, String defaultPattern) Get the excludes patterngetFileNames
(File directory) Returns a list of file names.Returns a list of files.Get the includes pattern
-
Field Details
-
DEFAULT_INCLUDES
- See Also:
-
DEFAULT_EXCLUDES
- See Also:
-
includes
-
excludes
-
-
Constructor Details
-
FileFilter
Construct a new FileFilter- Parameters:
includes
- list of includes patternsexcludes
- list of excludes patterns
-
-
Method Details
-
getFileNames
Returns a list of file names.- Parameters:
directory
- the directory to scan- Returns:
- a list of files
- Throws:
IOException
- if file system access fails
-
getFiles
Returns a list of files.- Parameters:
directory
- the directory to scan- Returns:
- a list of files
- Throws:
IOException
- if file system access fails
-
getIncludes
Get the includes pattern- Returns:
- the pattern
-
getExcludes
Get the excludes pattern- Returns:
- the pattern
-
buildPattern
-