sonarqube = new ProcessWrapper(
"org.sonar.application.StartServer",
new String[]{env.rootDir().getAbsolutePath() + "/lib/server/sonar-application-4.5-SNAPSHOT.jar"},
- ImmutableMap.of("test", "test"),
+ ImmutableMap.of(
+ "SONAR_HOME", env.rootDir().getAbsolutePath(),
+ "test", "test"),
"SQ", monitor.getMonitoringPort());
registerProcess(sonarqube);
"org.sonar.search.ElasticSearch",
new String[]{env.rootDir().getAbsolutePath() + "/lib/search/sonar-search-4.5-SNAPSHOT.jar"},
ImmutableMap.of(
+ "SONAR_HOME", env.rootDir().getAbsolutePath(),
"esDebug", properties.containsKey("esDebug") ? properties.get("esDebug") : "false",
"esPort", esPort,
"esHome", env.rootDir().getAbsolutePath()),
//Check if we have a SONAR_HOME
if (StringUtils.isEmpty(home)) {
home = new File(".").getAbsolutePath();
- System.getenv().put("SONAR_HOME", home);
}
new StartServer(new Env(home), args).start();