aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application/src/main
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-08-04 18:25:39 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-08-04 19:22:33 +0200
commit13422968f2a9c744c4b280c8597333f8c29c37ee (patch)
treeadeadd39d6996bc31dfaf43073b9f005a0f37e58 /sonar-application/src/main
parent0a574624e036dcca6c8bdeefca9cb4c4da64bb88 (diff)
downloadsonarqube-13422968f2a9c744c4b280c8597333f8c29c37ee.tar.gz
sonarqube-13422968f2a9c744c4b280c8597333f8c29c37ee.zip
SONAR-4898 fix directory of access.log
Diffstat (limited to 'sonar-application/src/main')
-rw-r--r--sonar-application/src/main/java/org/sonar/application/App.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/sonar-application/src/main/java/org/sonar/application/App.java b/sonar-application/src/main/java/org/sonar/application/App.java
index 2920760f7e4..89871007be9 100644
--- a/sonar-application/src/main/java/org/sonar/application/App.java
+++ b/sonar-application/src/main/java/org/sonar/application/App.java
@@ -67,6 +67,7 @@ public class App implements ProcessMXBean {
.setJmxPort(Integer.parseInt(installation.prop(DefaultSettings.WEB_JMX_PORT_KEY)))
.addJavaOpts(installation.prop(DefaultSettings.WEB_JAVA_OPTS_KEY))
.addJavaOpts(String.format("-Djava.io.tmpdir=%s", installation.tempDir().getAbsolutePath()))
+ .addJavaOpts(String.format("-Dsonar.path.logs=%s", installation.logsDir().getAbsolutePath()))
.setClassName("org.sonar.server.app.WebServer")
.addProperties(installation.props().rawProperties())
.addClasspath(installation.starPath("extensions/jdbc-driver/mysql"))