diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-10-26 15:36:32 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-10-26 15:36:32 +0200 |
commit | b71b3673e91930aac3fff828d628279b5dee7616 (patch) | |
tree | 8db60d0f562739923c2ba8f29c004bc547c08930 /sonar-plugin-api | |
parent | e5afb0ad760fa38ceb624789162e01b04f49808a (diff) | |
download | sonarqube-b71b3673e91930aac3fff828d628279b5dee7616.tar.gz sonarqube-b71b3673e91930aac3fff828d628279b5dee7616.zip |
SONAR-3895 execute bootstrap extensions (liek ProjectBuilder) before initializing db
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/batch/CoverageExtension.java | 10 | ||||
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/utils/command/CommandException.java | 4 |
2 files changed, 6 insertions, 8 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/CoverageExtension.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/CoverageExtension.java index 09ef5abac6c..c6144d917b3 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/CoverageExtension.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/CoverageExtension.java @@ -22,14 +22,10 @@ package org.sonar.api.batch; import org.sonar.api.BatchExtension; /** - * Marker for extension. Extension which implements this interface would be active, when: - * <ul> - * <li>corresponding coverage engine activated (see {@link AbstractCoverageExtension#PARAM_PLUGIN}) and language is Java</li> - * <li>type of analysis is dynamic or reuse reports</li> - * </ul> - * + * Marker for the extensions that execute coverage tools. It's useful for the plugins that + * need to be executed after coverage analysis, for example import of test results by the Surefire plugin + * * @since 2.6 - * @TODO Ability to configure coverage engine per language - http://jira.codehaus.org/browse/SONAR-1803 */ public interface CoverageExtension extends BatchExtension { diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/CommandException.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/CommandException.java index b507d5dd0e7..42c32b18a0a 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/CommandException.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/CommandException.java @@ -19,11 +19,13 @@ */ package org.sonar.api.utils.command; +import javax.annotation.Nullable; + public final class CommandException extends RuntimeException { private transient Command command = null; - public CommandException(Command command, String message, Throwable throwable) { + public CommandException(Command command, String message, @Nullable Throwable throwable) { super(message + " [command: " + command + "]", throwable); this.command = command; } |