public static Properties loadClasspath ( String path ) throws IOException { InputStream input = PropUtils . class . getClassLoader ( ) . getResourceAsStream ( path ) ; Properties prop = null ; try { prop = load ( input ) ; } finally { IOUtils . close ( input ) ; } return prop ; }
Loads properties from a file in the classpath .