diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2012-05-10 17:42:53 +0200 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2012-05-14 15:11:00 +0200 |
commit | 9f98c79be1638dabadc5a15bbf2ef512bbbcb690 (patch) | |
tree | 1e2842bd964dad0d418ad30821577c5cad1e0413 /plugins/sonar-core-plugin | |
parent | e9475e56b36eee4b79b8b73708281426af366416 (diff) | |
download | sonarqube-9f98c79be1638dabadc5a15bbf2ef512bbbcb690.tar.gz sonarqube-9f98c79be1638dabadc5a15bbf2ef512bbbcb690.zip |
SONAR-2541 Add the sonar-reviews-plugin with JiraLinkReviewAction
- Based on SOAP for creating the issue
- For the moment only creates on the FOO project on locahost:8080
with user admin/admin
=> Next step is to get all this from the project or global
properties
Diffstat (limited to 'plugins/sonar-core-plugin')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java | 4 | ||||
-rw-r--r-- | plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/reviews/JiraLinkReviewAction.java | 31 |
2 files changed, 0 insertions, 35 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java index dc4a9877d7f..9aeeb35e456 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java @@ -40,7 +40,6 @@ import org.sonar.plugins.core.dashboards.DefaultDashboard; import org.sonar.plugins.core.dashboards.HotspotsDashboard; import org.sonar.plugins.core.dashboards.ReviewsDashboard; import org.sonar.plugins.core.dashboards.TimeMachineDashboard; -import org.sonar.plugins.core.reviews.JiraLinkReviewAction; import org.sonar.plugins.core.security.ApplyProjectRolesDecorator; import org.sonar.plugins.core.sensors.BranchCoverageDecorator; import org.sonar.plugins.core.sensors.CheckAlertThresholds; @@ -385,9 +384,6 @@ public final class CorePlugin extends SonarPlugin { extensions.add(NewItCoverageFileAnalyzer.class); extensions.add(NewCoverageAggregator.class); - // reviews - extensions.add(JiraLinkReviewAction.class); - return extensions; } } diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/reviews/JiraLinkReviewAction.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/reviews/JiraLinkReviewAction.java deleted file mode 100644 index 7184c6ecba8..00000000000 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/reviews/JiraLinkReviewAction.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.sonar.plugins.core.reviews; - -import org.sonar.api.reviews.LinkReviewAction; - -import java.util.Map; -import java.util.Map.Entry; - -/** - * @since 3.1 - */ -public class JiraLinkReviewAction implements LinkReviewAction { - - public String getId() { - return "jira-link"; - } - - public String getName() { - return "Link to JIRA"; - } - - public void execute(Map<String, String> reviewContext) { - System.out.println("============>"); - - for (Entry<String, String> mapEntry : reviewContext.entrySet()) { - System.out.println(mapEntry.getKey() + " // " + mapEntry.getValue()); - } - - System.out.println("<============"); - } - -} |