@ SuppressWarnings ( "checkstyle:emptyblock" ) private void load ( ) { recordMessage ( "Loading parameters" ) ; File cwd = new File ( "." ) ; String workingDir ; try { workingDir = cwd . getCanonicalPath ( ) ; } catch ( IOException ex ) { workingDir = "UNKNOWN" ; } recordMessage ( "Working directory is " + workingDir ) ; for ( String resourceName : PARAMETER_LOAD_ORDER ) { loadTop ( resourceName ) ; } if ( getBoolean ( USE_SYSTEM_PROPERTIES ) ) { recordMessage ( "Loading from system properties" ) ; load ( System . getProperties ( ) , "System Properties" , true ) ; } // Now perform variable substitution. do { // Do nothing while loop } while ( substitute ( ) ) ; if ( getBoolean ( DUMP ) ) { // Can't use logging infrastructure here, so dump to console log ( getDebuggingInfo ( ) ) ; log ( getMessages ( ) ) ; } // We don't want the StringBuffer hanging around after 'DUMP'. clearMessages ( ) ; // Now move any parameters with the system parameters prefix into the real system parameters. Properties systemProperties = getSubProperties ( SYSTEM_PARAMETERS_PREFIX , true ) ; System . getProperties ( ) . putAll ( systemProperties ) ; }
Load the backing from the properties file visible to our classloader plus the filesystem .