public static void loadPropsFromFile(File file){
  if (file.exists()) {
    try (InputStream stream=new FileInputStream(file)){
      logger.info("Loading properties file '" + file.getAbsolutePath() + "'");
      loadProperties(stream);
    }
 catch (    IOException e) {
      logger.error("Problem loading properties file '" + file.getAbsolutePath() + "'");
      e.printStackTrace();
    }
  }
 else {
    logger.warn("Properties file does not exist: '" + file.getAbsolutePath() + "'");
  }
}

public static void loadPropsFromFile ( File file ) { if ( file . exists ( ) ) { try ( InputStream stream = new FileInputStream ( file ) ) { logger . info ( "Loading properties file '" + file . getAbsolutePath ( ) + "'" ) ; loadProperties ( stream ) ; } catch ( IOException e ) { logger . error ( "Problem loading properties file '" + file . getAbsolutePath ( ) + "'" ) ; e . printStackTrace ( ) ; } } else { logger . warn ( "Properties file does not exist: '" + file . getAbsolutePath ( ) + "'" ) ; } }
loads the properties from the specified file . < p > the new properties are added to the current system configuration .
