@SuppressWarnings("ConstantConditions") Set<String> findResourceNamesFromFileSystem(String classPathRootOnDisk,String scanRootLocation,File folder) throws IOException {
  LOG.debug("Scanning for resources in path: " + folder.getPath() + " ("+ scanRootLocation+ ")");
  Set<String> resourceNames=new TreeSet<String>();
  File[] files=folder.listFiles();
  for (  File file : files) {
    if (file.canRead()) {
      if (file.isDirectory()) {
        resourceNames.addAll(findResourceNamesFromFileSystem(classPathRootOnDisk,scanRootLocation,file));
      }
 else {
        resourceNames.add(toResourceNameOnClasspath(classPathRootOnDisk,file));
      }
    }
  }
  return resourceNames;
}

@ SuppressWarnings ( "ConstantConditions" ) Set < String > findResourceNamesFromFileSystem ( String classPathRootOnDisk , String scanRootLocation , File folder ) throws IOException { LOG . debug ( "Scanning for resources in path: " + folder . getPath ( ) + " (" + scanRootLocation + ")" ) ; Set < String > resourceNames = new TreeSet < String > ( ) ; File [ ] files = folder . listFiles ( ) ; for ( File file : files ) { if ( file . canRead ( ) ) { if ( file . isDirectory ( ) ) { resourceNames . addAll ( findResourceNamesFromFileSystem ( classPathRootOnDisk , scanRootLocation , file ) ) ; } else { resourceNames . add ( toResourceNameOnClasspath ( classPathRootOnDisk , file ) ) ; } } } return resourceNames ; }
finds all the resource names contained in this file system folder .
