private static String readConfigProperty(String relativePath,String propertyKey){
  String home=getRapidMinerHome();
  if (home == null) {
    logWarn("Property 'rapidminer.home' not set. Cannot read property file '" + relativePath + "'");
    return null;
  }
  File propertyFile=new File(home,relativePath);
  if (propertyFile.canRead()) {
    Properties props=new Properties();
    try (InputStreamReader reader=new InputStreamReader(new FileInputStream(propertyFile),StandardCharsets.UTF_8)){
      props.load(reader);
    }
 catch (    IOException e) {
      logWarn("Error reading properties file! " + e.getLocalizedMessage());
    }
    return props.getProperty(propertyKey);
  }
 else {
    logWarn("Property file (" + propertyFile + ") not found or not readable!");
    return null;
  }
}

private static String readConfigProperty ( String relativePath , String propertyKey ) { String home = getRapidMinerHome ( ) ; if ( home == null ) { logWarn ( "Property 'rapidminer.home' not set. Cannot read property file '" + relativePath + "'" ) ; return null ; } File propertyFile = new File ( home , relativePath ) ; if ( propertyFile . canRead ( ) ) { Properties props = new Properties ( ) ; try ( InputStreamReader reader = new InputStreamReader ( new FileInputStream ( propertyFile ) , StandardCharsets . UTF_8 ) ) { props . load ( reader ) ; } catch ( IOException e ) { logWarn ( "Error reading properties file! " + e . getLocalizedMessage ( ) ) ; } return props . getProperty ( propertyKey ) ; } else { logWarn ( "Property file (" + propertyFile + ") not found or not readable!" ) ; return null ; } }
reads a value from a . properties file stored relative to the folder specified by the system property ' rapidminer . home ' .
