public SimulatorProperties init ( File file ) { if ( file == null ) { // if no file is explicitly given, we look in the working directory file = new File ( getUserDir ( ) , PROPERTIES_FILE_NAME ) ; if ( ! file . exists ( ) ) { LOGGER . info ( format ( "Found no %s in working directory, relying on default properties" , PROPERTIES_FILE_NAME ) ) ; return null ; } } LOGGER . info ( format ( "Loading additional %s: %s" , PROPERTIES_FILE_NAME , file . getAbsolutePath ( ) ) ) ; check ( file ) ; load ( file , false ) ; return this ; }
Initializes the SimulatorProperties with additional properties .