code: 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();
  	}
docs: Get matching paths found in given base directory
  
  @param includes
  @param excludes
  @param baseDir
  @return non-null but possibly empty array of string paths relative to the
  base directory