diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-08-07 00:23:31 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-08-07 00:27:14 +0200 |
commit | 868917eb6c27fbbe552b9234a6c698ab10f5549f (patch) | |
tree | 45cae40a5ec3b37957984032328201e079069dd3 | |
parent | 51a44e634773d34fff52efadb036693f40d5bf48 (diff) | |
download | sonarqube-868917eb6c27fbbe552b9234a6c698ab10f5549f.tar.gz sonarqube-868917eb6c27fbbe552b9234a6c698ab10f5549f.zip |
No need to repeat default property values in SearchServer
-rw-r--r-- | server/sonar-search/src/main/java/org/sonar/search/SearchServer.java | 7 |
1 files changed, 3 insertions, 4 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 de8d8422619..93161516ab0 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 @@ -85,10 +85,9 @@ public class SearchServer extends MonitoredProcess { throw new IllegalStateException("Required property '" + ES_PORT_PROPERTY + "' is not set"); } - String homeDir = props.of("sonar.path.home"); - String dataDir = props.of("sonar.path.data", homeDir + "/data"); - String logDir = props.of("sonar.path.logs", homeDir + "/logs"); - String tempDir = props.of("sonar.path.temp", homeDir + "/temp"); + String dataDir = props.of("sonar.path.data"); + String logDir = props.of("sonar.path.logs"); + String tempDir = props.of("sonar.path.temp"); Integer port = props.intOf(ES_PORT_PROPERTY); String clusterName = props.of(ES_CLUSTER_PROPERTY); |