class FileNameFinder
extends Object
implements IFileNameFinder
Find files according to a base directory and an includes and excludes pattern. The include and exclude patterns conform to Ant's fileset pattern conventions.
| Constructor and description |
|---|
FileNameFinder() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
List<String> |
getFileNames(String basedir, String pattern)Finds files below the supplied base directory that match the given include pattern. |
|
List<String> |
getFileNames(String basedir, String pattern, String excludesPattern)Finds files below the supplied base directory that match the include pattern and avoid the exclude pattern. |
|
List<String> |
getFileNames(Map args)Finds files using the supplied Ant fileset arguments. |
Finds files below the supplied base directory that match the given include pattern.
basedir - the directory to scanpattern - the Ant-style include patternFinds files below the supplied base directory that match the include pattern and avoid the exclude pattern.
basedir - the directory to scanpattern - the Ant-style include patternexcludesPattern - the Ant-style exclude patternCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.