Package de.dentrassi.maven.jacoco
Class FileFilter
- java.lang.Object
-
- de.dentrassi.maven.jacoco.FileFilter
-
public class FileFilter extends Object
A file filter using includes/excludes patterns.
-
-
Constructor Summary
Constructors Constructor Description FileFilter(List<String> includes, List<String> excludes)
Construct a new FileFilter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getExcludes()
Get the excludes patternList<String>
getFileNames(File directory)
Returns a list of file names.List<File>
getFiles(File directory)
Returns a list of files.String
getIncludes()
Get the includes pattern
-
-
-
Constructor Detail
-
FileFilter
public FileFilter(List<String> includes, List<String> excludes)
Construct a new FileFilter- Parameters:
includes
- list of includes patternsexcludes
- list of excludes patterns
-
-
Method Detail
-
getFileNames
public List<String> getFileNames(File directory) throws IOException
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
public List<File> getFiles(File directory) throws IOException
Returns a list of files.- Parameters:
directory
- the directory to scan- Returns:
- a list of files
- Throws:
IOException
- if file system access fails
-
getIncludes
public String getIncludes()
Get the includes pattern- Returns:
- the pattern
-
getExcludes
public String getExcludes()
Get the excludes pattern- Returns:
- the pattern
-
-