private static void loadLocalProps ( ) { if ( null == localProps ) { localProps = new Properties ( ) ; } try { InputStream resourceAsStream ; final String localPropsEnv = System . getenv ( "LATKE_LOCAL_PROPS" ) ; if ( StringUtils . isNotBlank ( localPropsEnv ) ) { LOGGER . debug ( "Loading local.properties from env var [$LATKE_LOCAL_PROPS=" + localPropsEnv + "]" ) ; resourceAsStream = new FileInputStream ( localPropsEnv ) ; } else { LOGGER . debug ( "Loading local.properties from classpath [/local.properties]" ) ; resourceAsStream = Latkes . class . getResourceAsStream ( "/local.properties" ) ; } if ( null != resourceAsStream ) { localProps . load ( resourceAsStream ) ; LOGGER . debug ( "Loaded local.properties" ) ; } } catch ( final Exception e ) { LOGGER . log ( Level . DEBUG , "Loads local.properties failed, ignored" ) ; } }
Loads the local . props .