public static Properties getProps ( String fileName ) throws Exception { Properties properties = new Properties ( ) ; InputStream inputStream = PropertyReader . class . getClassLoader ( ) . getResourceAsStream ( fileName ) ; if ( inputStream != null ) { try { properties . load ( inputStream ) ; } catch ( IOException e ) { LOGGER . error ( "JSON is null or empty." ) ; throw new KunderaException ( "JSON is null or empty." ) ; } } else { throw new KunderaException ( "Property file: [" + fileName + "] not found in the classpath" ) ; } return properties ; }
Gets the props .