public String [ ] getFileNames ( File baseDirectory ) { if ( ! baseDirectory . exists ( ) ) { return new String [ 0 ] ; } final DirectoryScanner directoryScanner = new DirectoryScanner ( ) ; directoryScanner . setBasedir ( baseDirectory ) ; directoryScanner . setIncludes ( includes ) ; directoryScanner . addDefaultExcludes ( ) ; directoryScanner . scan ( ) ; return directoryScanner . getIncludedFiles ( ) ; }
Finds the files in the supplied folder that match the configured includes .