aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-search
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-07-18 18:13:06 +0200
committerDaniel Schwarz <bartfastiel@users.noreply.github.com>2017-08-09 15:09:54 +0200
commit070e44fc4a7a7ec0f008aa2cbff48075a247e40c (patch)
tree36f34dc662c08e1954c7de7e108f29de6178e144 /server/sonar-search
parent8e7d3d36bbee35e07db9f98b8ff0ec92284b09f3 (diff)
downloadsonarqube-070e44fc4a7a7ec0f008aa2cbff48075a247e40c.tar.gz
sonarqube-070e44fc4a7a7ec0f008aa2cbff48075a247e40c.zip
SONAR-8798 start and monitor ES script from main process
Diffstat (limited to 'server/sonar-search')
-rw-r--r--server/sonar-search/src/main/java/org/sonar/search/SearchServer.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java b/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java
index e87008f3c48..af6586a9492 100644
--- a/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java
+++ b/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java
@@ -71,6 +71,9 @@ public class SearchServer implements Monitored {
.forEach(entry -> command.add("-E" + entry.getKey() + "=" + entry.getValue()));
url = "http://"+settingsMap.get("http.host") + ":" + settingsMap.get("http.port");
System.out.println(command.stream().collect(Collectors.joining(" ")));
+
+
+
ProcessBuilder builder = new ProcessBuilder(command)
.directory(new File(path.getParent().toAbsolutePath().toString()));
builder.redirectOutput(ProcessBuilder.Redirect.PIPE);