public static Properties readPropertiesFromClassLoader ( String resource ) { Properties properties = new Properties ( ) ; try { properties . load ( FsCrawlerUtil . class . getClassLoader ( ) . getResourceAsStream ( resource ) ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } return properties ; }
Read a property file from the class loader