aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/main/java/org/sonar/batch/bootstrapper
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-03-12 11:28:34 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2012-03-12 11:29:00 +0100
commit2d284f4e3a0b4cefa0becb922d3ad939aa076db6 (patch)
treeeeb75278a1957cdcf61baa33d8bc97e1baabaea5 /sonar-batch/src/main/java/org/sonar/batch/bootstrapper
parentd129cbd866b0242ef6777bb6923d27c852ccf95f (diff)
downloadsonarqube-2d284f4e3a0b4cefa0becb922d3ad939aa076db6.tar.gz
sonarqube-2d284f4e3a0b4cefa0becb922d3ad939aa076db6.zip
Log a clean message when an exception is thrown during picocontainer startup
Diffstat (limited to 'sonar-batch/src/main/java/org/sonar/batch/bootstrapper')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Batch.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Batch.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Batch.java
index 7c05398b27d..3de296ae89b 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Batch.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/Batch.java
@@ -20,9 +20,11 @@
package org.sonar.batch.bootstrapper;
import com.google.common.collect.Lists;
+import org.slf4j.LoggerFactory;
import org.sonar.api.batch.bootstrap.ProjectReactor;
import org.sonar.batch.bootstrap.BootstrapModule;
import org.sonar.batch.bootstrap.Module;
+import org.sonar.core.PicoUtils;
import java.util.Arrays;
import java.util.List;
@@ -69,6 +71,8 @@ public final class Batch {
Module bootstrapModule = new BootstrapModule(projectReactor, components.toArray(new Object[components.size()])).init();
try {
bootstrapModule.start();
+ } catch (RuntimeException e) {
+ PicoUtils.handleStartupException(e, LoggerFactory.getLogger(getClass()));
} finally {
try {
bootstrapModule.stop();