diff options
author | Eric Hartmann <hartmann.eric@gmail.Com> | 2017-03-15 10:12:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-15 10:12:18 +0100 |
commit | 5f95ea5b105dcd39813d832acfbbecb81fe33dbb (patch) | |
tree | 95ebbd9505d59cabc2e41e167a7f0444d712ce1d /sonar-application/src/main/java | |
parent | 051c0509fde15354ec02f6a86eddb0ce493458b2 (diff) | |
download | sonarqube-5f95ea5b105dcd39813d832acfbbecb81fe33dbb.tar.gz sonarqube-5f95ea5b105dcd39813d832acfbbecb81fe33dbb.zip |
SONAR-8817 Add SonarQube version safeguard in cluster mode (#1781)
SONAR-8817 Add SonarQube version safeguard in cluster mode
Diffstat (limited to 'sonar-application/src/main/java')
-rw-r--r-- | sonar-application/src/main/java/org/sonar/application/App.java | 3 |
1 files changed, 3 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 efc4a89d234..3f9d0470f0c 100644 --- a/sonar-application/src/main/java/org/sonar/application/App.java +++ b/sonar-application/src/main/java/org/sonar/application/App.java @@ -31,6 +31,8 @@ import org.sonar.application.process.StopRequestWatcher; import org.sonar.application.process.StopRequestWatcherImpl; import org.sonar.process.SystemExit; +import static org.sonar.application.config.SonarQubeVersionHelper.getSonarqubeVersion; + public class App { private final SystemExit systemExit = new SystemExit(); @@ -45,6 +47,7 @@ public class App { AppFileSystem fileSystem = new AppFileSystem(settings); try (AppState appState = new AppStateFactory(settings).create()) { + appState.registerSonarQubeVersion(getSonarqubeVersion()); AppReloader appReloader = new AppReloaderImpl(settingsLoader, fileSystem, appState, logging); JavaCommandFactory javaCommandFactory = new JavaCommandFactoryImpl(settings); fileSystem.reset(); |