]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-11792 only ES executable for linux/mac is used
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Wed, 13 Mar 2019 14:20:19 +0000 (15:20 +0100)
committerSonarTech <sonartech@sonarsource.com>
Tue, 19 Mar 2019 19:21:26 +0000 (20:21 +0100)
server/sonar-main/src/main/java/org/sonar/application/es/EsInstallation.java

index 12789f8c38b683d86b7f2147ca3950719ae4f3b0..8ec7f31c7afaddf9ab57e16f750872cfb07956fa 100644 (file)
@@ -103,14 +103,7 @@ public class EsInstallation {
   }
 
   public File getExecutable() {
-    return new File(homeDirectory, "bin/" + getExecutableName());
-  }
-
-  private static String getExecutableName() {
-    if (System.getProperty("os.name").startsWith("Windows")) {
-      return "elasticsearch.bat";
-    }
-    return "elasticsearch";
+    return new File(homeDirectory, "bin/elasticsearch");
   }
 
   public File getLog4j2PropertiesLocation() {