aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application/src/main/java
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2019-05-03 17:36:18 +0200
committerSonarTech <sonartech@sonarsource.com>2019-06-03 20:21:21 +0200
commite4db1c35e0bead63a16875c5f5d8e9ad149a3c4d (patch)
treece04467f2caf2cf518f45a8859636bbc7918e9c9 /sonar-application/src/main/java
parentb7c48f52ec450937c610242b7f3232223e3236b3 (diff)
downloadsonarqube-e4db1c35e0bead63a16875c5f5d8e9ad149a3c4d.tar.gz
sonarqube-e4db1c35e0bead63a16875c5f5d8e9ad149a3c4d.zip
SONAR-12043 SchedulerImpl correctly handle Thread interrupt
Diffstat (limited to 'sonar-application/src/main/java')
-rw-r--r--sonar-application/src/main/java/org/sonar/application/App.java4
1 files changed, 2 insertions, 2 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 ef64bc03688..fffc59bd000 100644
--- a/sonar-application/src/main/java/org/sonar/application/App.java
+++ b/sonar-application/src/main/java/org/sonar/application/App.java
@@ -46,7 +46,7 @@ public class App {
this.javaVersion = javaVersion;
}
- public void start(String[] cliArguments) throws IOException {
+ public void start(String[] cliArguments) throws IOException, InterruptedException {
AppSettingsLoader settingsLoader = new AppSettingsLoaderImpl(cliArguments, new ServiceLoaderWrapper());
AppSettings settings = settingsLoader.load();
// order is important - logging must be configured before any other components (AppFileSystem, ...)
@@ -91,7 +91,7 @@ public class App {
}
}
- public static void main(String... args) throws IOException {
+ public static void main(String... args) throws Exception {
new App(JavaVersion.INSTANCE).start(args);
}