protected Set<Resource> doFindMatchingFileSystemResources(File rootDir,String subPattern) throws IOException {
  if (logger.isDebugEnabled()) {
    logger.debug("Looking for matching resources in directory tree [" + rootDir.getPath() + "]");
  }
  Set<File> matchingFiles=retrieveMatchingFiles(rootDir,subPattern);
  Set<Resource> result=new LinkedHashSet<Resource>(matchingFiles.size());
  for (  File file : matchingFiles) {
    result.add(new FileSystemResource(file));
  }
  return result;
}

protected Set < Resource > doFindMatchingFileSystemResources ( File rootDir , String subPattern ) throws IOException { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Looking for matching resources in directory tree [" + rootDir . getPath ( ) + "]" ) ; } Set < File > matchingFiles = retrieveMatchingFiles ( rootDir , subPattern ) ; Set < Resource > result = new LinkedHashSet < Resource > ( matchingFiles . size ( ) ) ; for ( File file : matchingFiles ) { result . add ( new FileSystemResource ( file ) ) ; } return result ; }
find all resources in the file system that match the given location pattern via the ant - style pathmatcher .
