diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2015-04-27 16:11:42 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2015-04-27 16:11:42 +0200 |
commit | 912a5cf6b17658addd1511d90dbb77094dd51056 (patch) | |
tree | 362ec83093d34774dd00e2617b18adb024a2ff74 /sonar-batch | |
parent | 8e1aa5edde48d2d8d4471a051201101a76b0b131 (diff) | |
download | sonarqube-912a5cf6b17658addd1511d90dbb77094dd51056.tar.gz sonarqube-912a5cf6b17658addd1511d90dbb77094dd51056.zip |
Fix wrong import
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/report/ReportPublisher.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/report/ReportPublisher.java b/sonar-batch/src/main/java/org/sonar/batch/report/ReportPublisher.java index 2043fcd7f01..e062ccb1eac 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/report/ReportPublisher.java +++ b/sonar-batch/src/main/java/org/sonar/batch/report/ReportPublisher.java @@ -22,9 +22,7 @@ package org.sonar.batch.report; import com.github.kevinsawicki.http.HttpRequest; import com.google.common.annotations.VisibleForTesting; import org.apache.commons.io.FileUtils; -import org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable; -import org.codehaus.plexus.personality.plexus.lifecycle.phase.StartingException; -import org.codehaus.plexus.personality.plexus.lifecycle.phase.StoppingException; +import org.picocontainer.Startable; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.sonar.api.BatchComponent; @@ -72,13 +70,13 @@ public class ReportPublisher implements BatchComponent, Startable { } @Override - public void start() throws StartingException { + public void start() { reportDir = new File(projectReactor.getRoot().getWorkDir(), "batch-report"); writer = new BatchReportWriter(reportDir); } @Override - public void stop() throws StoppingException { + public void stop() { if (!settings.getBoolean(KEEP_REPORT_PROP_KEY)) { FileUtils.deleteQuietly(reportDir); } else { |