public static String [ ] getMatchingPaths ( final String [ ] includes , final String [ ] excludes , final String baseDir ) { DirectoryScanner scanner = new DirectoryScanner ( ) ; scanner . setBasedir ( baseDir ) ; if ( includes != null && includes . length > 0 ) { scanner . setIncludes ( includes ) ; } if ( excludes != null && excludes . length > 0 ) { scanner . setExcludes ( excludes ) ; } scanner . scan ( ) ; return scanner . getIncludedFiles ( ) ; }
Get matching paths found in given base directory