public static Properties loadProperties ( String filePath ) throws MnoConfigurationException { Properties properties = new Properties ( ) ; InputStream input = getInputStreamFromClassPathOrFile ( filePath ) ; try { properties . load ( input ) ; } catch ( IOException e ) { throw new MnoConfigurationException ( "Could not load properties file: " + filePath , e ) ; } finally { IOUtils . closeQuietly ( input ) ; } return properties ; }
load Properties from a filePath in the classPath or absolute