public List<Properties> findAllProperties(String uri) throws IOException {
  String fulluri=_path + uri;
  List<Properties> properties=new ArrayList<>();
  Enumeration<URL> resources=getResources(fulluri);
  while (resources.hasMoreElements()) {
    URL url=resources.nextElement();
    Properties props=loadProperties(url);
    properties.add(props);
  }
  return properties;
}

public List < Properties > findAllProperties ( String uri ) throws IOException { String fulluri = _path + uri ; List < Properties > properties = new ArrayList < > ( ) ; Enumeration < URL > resources = getResources ( fulluri ) ; while ( resources . hasMoreElements ( ) ) { URL url = resources . nextElement ( ) ; Properties props = loadProperties ( url ) ; properties . add ( props ) ; } return properties ; }
finds the corresponding resources and reads them in as a properties files < p / > any url that cannot be read in as a properties file will cause an exception to be thrown . < p / > example classpath : < p / > meta - inf / app . properties meta - inf / app . properties meta - inf / app . properties < p / > resourcefinder finder = new resourcefinder ( " meta - inf / " ) ; list < properties > appprops = finder . findallproperties ( " app . properties " ) ;
