]> source.dussan.org Git - sonarqube.git/commitdiff
added properties for SearchServer in ServerTester for mediumTests
authorStephane Gamard <stephane.gamard@searchbox.com>
Thu, 14 Aug 2014 10:39:16 +0000 (12:39 +0200)
committerStephane Gamard <stephane.gamard@searchbox.com>
Thu, 14 Aug 2014 10:39:16 +0000 (12:39 +0200)
server/sonar-server/src/test/java/org/sonar/server/tester/ServerTester.java

index c1e941580243b0b2cbaee5f91b7ab058d9632827..ce6fad22f772e5a48725cedf46c21ddf13febd1c 100644 (file)
@@ -72,9 +72,7 @@ public class ServerTester extends ExternalResource {
     properties.setProperty(IndexProperties.CLUSTER_NAME, clusterName);
     properties.setProperty(IndexProperties.NODE_PORT, clusterPort.toString());
     properties.setProperty(MonitoredProcess.NAME_PROPERTY, "ES");
-    properties.setProperty("sonar.path.data", new File(homeDir, "data/es").getAbsolutePath());
-    properties.setProperty("sonar.path.logs", new File(homeDir, "logs").getAbsolutePath());
-    properties.setProperty("sonar.path.temp", new File(homeDir, "temp").getAbsolutePath());
+    properties.setProperty(SearchServer.SONAR_PATH_HOME, homeDir.getAbsolutePath());
     try {
       searchServer = new SearchServer(new Props(properties), false, false);
     } catch (Exception e) {