org.jacoco.maven
Class FileFilter

java.lang.Object
  extended by org.jacoco.maven.FileFilter

public class FileFilter
extends Object

A file filter using includes/excludes patterns.


Constructor Summary
FileFilter(List<String> includes, List<String> excludes)
          Construct a new FileFilter
 
Method Summary
 String getExcludes()
          Get the excludes pattern
 List<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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileFilter

public FileFilter(List<String> includes,
                  List<String> excludes)
Construct a new FileFilter

Parameters:
includes - list of includes patterns
excludes - 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


Copyright © 2009–2019 Mountainminds GmbH & Co. KG. All rights reserved.