doRetrieveMatchingFiles(fullPattern, rootDir, result); return result;
doRetrieveMatchingFiles(fullPattern, content, result);
doRetrieveMatchingFiles(fullPattern, rootDir, result); return result;
doRetrieveMatchingFiles(fullPattern, content, result);
doRetrieveMatchingFiles(fullPattern, rootDir, result); return result;
doRetrieveMatchingFiles(fullPattern, content, result);
doRetrieveMatchingFiles(fullPattern, rootDir, result); return result;
/** * Retrieve files that match the given path pattern, * checking the given directory and its subdirectories. * @param rootDir the directory to start from * @param pattern the pattern to match against, * relative to the root directory * @return the Set of matching File instances * @throws IOException if directory contents could not be retrieved */ protected Set retrieveMatchingFiles(File rootDir, String pattern) throws IOException { if (!rootDir.isDirectory()) { throw new IllegalArgumentException("'rootDir' parameter [" + rootDir + "] does not denote a directory"); } String fullPattern = StringUtils.replace(rootDir.getAbsolutePath(), File.separator, "/"); if (!pattern.startsWith("/")) { fullPattern += "/"; } fullPattern = fullPattern + StringUtils.replace(pattern, File.separator, "/"); Set result = CollectionFactory.createLinkedSetIfPossible(8); doRetrieveMatchingFiles(fullPattern, rootDir, result); return result; }
(dirDepthNotFixed || StringUtils.countOccurrencesOf(currPath, "/") < StringUtils.countOccurrencesOf(fullPattern, "/"))) { doRetrieveMatchingFiles(fullPattern, dirContents[i], result);
doRetrieveMatchingFiles(fullPattern, content, result);