public class AntFileScanner extends Object implements FileScanner
Constructor and Description |
---|
AntFileScanner()
Constructs a new instance.
|
AntFileScanner(Log logger)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected List<File> |
convertToFiles(File directory,
String[] paths)
Converts paths found by scanner to files collection with absolute paths.
|
protected DirectoryScanner |
createDirectoryScanner()
Creates a
DirectoryScanner which will be used to find all files whose match filters. |
Collection<File> |
getFiles(File directory,
String[] includes,
String[] excludes)
Returns files contained by a directory.
|
public AntFileScanner()
public AntFileScanner(Log logger)
logger
- the logger used to log included/excluded files (only in debug mode).public Collection<File> getFiles(File directory, String[] includes, String[] excludes)
FileScanner
getFiles
in interface FileScanner
directory
- the directory to be scanned.includes
- an array of include patterns.excludes
- an array of exclude patternsprotected DirectoryScanner createDirectoryScanner()
DirectoryScanner
which will be used to find all files whose match filters.DirectoryScanner
or its subclass.getFiles(File, String[], String[])
protected List<File> convertToFiles(File directory, String[] paths)
directory
- the base directory.paths
- the found paths.getFiles(File, String[], String[])
Copyright © 2015–2016 gabrys.biz. All rights reserved.