protected static Properties loadConfig ( File file ) { InputStream is = null ; try { is = new FileInputStream ( file ) ; return loadConfig ( file . getAbsolutePath ( ) , is ) ; } catch ( Exception ex ) { throw new IllegalArgumentException ( "Failed to load configuration from [" + file . getAbsolutePath ( ) + "]" ) ; } finally { if ( is != null ) try { is . close ( ) ; } catch ( Exception ex ) { /* No Op */ } } }
Loads properties from the passed file