aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application/src/main/java/org/sonar/application
diff options
context:
space:
mode:
authorMichal Duda <michal.duda@sonarsource.com>2020-02-12 15:54:09 +0100
committerSonarTech <sonartech@sonarsource.com>2020-02-22 20:46:09 +0100
commitb1e40415a161a5ecdad7a321ac22a1b30710301f (patch)
treedc4b954c0f098a1966bba6c009c9f179f3c07e8d /sonar-application/src/main/java/org/sonar/application
parent89d6580d16f4e2cc928bb0117d2e7554ae7a9647 (diff)
downloadsonarqube-b1e40415a161a5ecdad7a321ac22a1b30710301f.tar.gz
sonarqube-b1e40415a161a5ecdad7a321ac22a1b30710301f.zip
SONAR-13078 enable configuring the server by environment variables
Diffstat (limited to 'sonar-application/src/main/java/org/sonar/application')
-rw-r--r--sonar-application/src/main/java/org/sonar/application/App.java3
1 files changed, 2 insertions, 1 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 0260d25ca5b..5ab3ae12142 100644
--- a/sonar-application/src/main/java/org/sonar/application/App.java
+++ b/sonar-application/src/main/java/org/sonar/application/App.java
@@ -42,12 +42,13 @@ public class App {
private final JavaVersion javaVersion;
private StopRequestWatcher stopRequestWatcher = null;
private StopRequestWatcher hardStopRequestWatcher = null;
+
public App(JavaVersion javaVersion) {
this.javaVersion = javaVersion;
}
public void start(String[] cliArguments) {
- AppSettingsLoader settingsLoader = new AppSettingsLoaderImpl(cliArguments, new ServiceLoaderWrapper());
+ AppSettingsLoader settingsLoader = new AppSettingsLoaderImpl(System2.INSTANCE, cliArguments, new ServiceLoaderWrapper());
AppSettings settings = settingsLoader.load();
// order is important - logging must be configured before any other components (AppFileSystem, ...)
AppLogging logging = new AppLogging(settings);