agave-common/common-core/src/main/java/org/iplantc/service/common/Settings.java
/**
     * Reads in the service.properties file from disk and merges it with
     * any environment variables injected at runtime. 
     * 
     * @return {@link Properties} object containing the runtime properties
     * to be used by this app.
     */
Reads in the service.properties file from disk and merges it with
any environment variables injected at runtime.

@return  Properties object containing the runtime properties
to be used by this app.
Reads in the service . properties file from disk and merges it with any environment variables injected at runtime . @return Properties object containing the runtime properties to be used by this app .
public static Properties loadRuntimeProperties()
    {
        Properties props = new Properties();
        InputStream stream = null;
        try {
        	stream = Settings.class.getClassLoader().getResourceAsStream(PROPERTY_FILE);
            props.load(stream);
        }
        catch (Exception e) {
        	String msg = "Unable to load " + PROPERTY_FILE + ".";
            log.error(msg, e);
        }
        finally {
        	if (stream != null) try {stream.close();} catch (Exception e){}
        }
        Map<String, String> environment = System.getenv();
        for (String varName : environment.keySet())
        {
            if (StringUtils.isBlank(varName)) continue;
            String propName = varName.toLowerCase().replaceAll("_", ".");
            props.remove(propName);
            props.setProperty(propName, environment.get(varName));
        }
        return props;
    }
public static Properties loadRuntimeProperties ( ) { Properties props = new Properties ( ) ; InputStream stream = null ; try { stream = Settings . class . getClassLoader ( ) . getResourceAsStream ( PROPERTY_FILE ) ; props . load ( stream ) ; } catch ( Exception e ) { String msg = "Unable to load " + PROPERTY_FILE + "." ; log . error ( msg , e ) ; } finally { if ( stream != null ) try { stream . close ( ) ; } catch ( Exception e ) { } } Map < String , String > environment = System . getenv ( ) ; for ( String varName : environment . keySet ( ) ) { if ( StringUtils . isBlank ( varName ) ) continue ; String propName = varName . toLowerCase ( ) . replaceAll ( "_" , "." ) ; props . remove ( propName ) ; props . setProperty ( propName , environment . get ( varName ) ) ; } return props ; }
Reads in the service.properties file from disk and merges it with
 any environment variables injected at runtime.
Reads in the service . properties file from disk and merges it with any environment variables injected at runtime .