public static synchronized void ensureRapidMinerHomeSet(final Level logLevel){
  LOGGER.setLevel(logLevel);
  if (getRapidMinerHome() == null) {
    logInfo("Property " + PROPERTY_RAPIDMINER_HOME + " is not set. Guessing.");
    if (!searchInClassPath()) {
      try {
        logInfo("Property " + PROPERTY_RAPIDMINER_HOME + " not found via search in Classpath. Searching in build directory.");
        searchInBuildDir();
      }
 catch (      Throwable e) {
        logSevere("Failed to locate 'rapidminer.home'! Cause: " + e.getLocalizedMessage());
      }
    }
  }
 else {
    logInfo(PROPERTY_RAPIDMINER_HOME + " is '" + getRapidMinerHome()+ "'.");
  }
}

public static synchronized void ensureRapidMinerHomeSet ( final Level logLevel ) { LOGGER . setLevel ( logLevel ) ; if ( getRapidMinerHome ( ) == null ) { logInfo ( "Property " + PROPERTY_RAPIDMINER_HOME + " is not set. Guessing." ) ; if ( ! searchInClassPath ( ) ) { try { logInfo ( "Property " + PROPERTY_RAPIDMINER_HOME + " not found via search in Classpath. Searching in build directory." ) ; searchInBuildDir ( ) ; } catch ( Throwable e ) { logSevere ( "Failed to locate 'rapidminer.home'! Cause: " + e . getLocalizedMessage ( ) ) ; } } } else { logInfo ( PROPERTY_RAPIDMINER_HOME + " is '" + getRapidMinerHome ( ) + "'." ) ; } }
ensures that the environment variable ' rapidminer . home ' is set by searching for rapidminer jars in classpath and build dir .
