aboutsummaryrefslogtreecommitdiffstats
path: root/it/it-plugins
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-03-22 18:08:41 +0100
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-03-23 11:30:23 +0100
commit4b5bc19bb3046bf0cb5917412b5f0fb50efcb0cd (patch)
tree8a1ccf6726db6399a83bb044d600d63e1d6ac8bd /it/it-plugins
parent03f9acc15f3e96dc98a99f56c7d04ded183fb526 (diff)
downloadsonarqube-4b5bc19bb3046bf0cb5917412b5f0fb50efcb0cd.tar.gz
sonarqube-4b5bc19bb3046bf0cb5917412b5f0fb50efcb0cd.zip
SONAR-6717 Drop support of plugin extension issue action
Diffstat (limited to 'it/it-plugins')
-rw-r--r--it/it-plugins/issue-action-plugin/pom.xml40
-rw-r--r--it/it-plugins/issue-action-plugin/src/main/java/ActionDefinition.java52
-rw-r--r--it/it-plugins/issue-action-plugin/src/main/java/IssueActionPlugin.java33
-rw-r--r--it/it-plugins/issue-action-plugin/src/main/resources/org/sonar/l10n/issueaction.properties21
-rw-r--r--it/it-plugins/pom.xml1
5 files changed, 0 insertions, 147 deletions
diff --git a/it/it-plugins/issue-action-plugin/pom.xml b/it/it-plugins/issue-action-plugin/pom.xml
deleted file mode 100644
index e5569299ff8..00000000000
--- a/it/it-plugins/issue-action-plugin/pom.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.sonarsource.sonarqube</groupId>
- <artifactId>it-plugins</artifactId>
- <version>5.5-SNAPSHOT</version>
- </parent>
-
- <artifactId>issue-action-plugin</artifactId>
- <packaging>sonar-plugin</packaging>
- <name>Plugins :: Issue Action</name>
- <version>1.0-SNAPSHOT</version>
-
- <dependencies>
- <dependency>
- <groupId>org.sonarsource.sonarqube</groupId>
- <artifactId>sonar-plugin-api</artifactId>
- <version>${apiVersion}</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.sonarsource.sonar-packaging-maven-plugin</groupId>
- <artifactId>sonar-packaging-maven-plugin</artifactId>
- <version>1.15</version>
- <extensions>true</extensions>
- <configuration>
- <pluginClass>IssueActionPlugin</pluginClass>
- <pluginKey>issueaction</pluginKey>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
diff --git a/it/it-plugins/issue-action-plugin/src/main/java/ActionDefinition.java b/it/it-plugins/issue-action-plugin/src/main/java/ActionDefinition.java
deleted file mode 100644
index 445eb7a1919..00000000000
--- a/it/it-plugins/issue-action-plugin/src/main/java/ActionDefinition.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-import org.sonar.api.ServerExtension;
-import org.sonar.api.issue.Issue;
-import org.sonar.api.issue.action.Actions;
-import org.sonar.api.issue.action.Function;
-import org.sonar.api.issue.condition.HasIssuePropertyCondition;
-import org.sonar.api.issue.condition.HasResolution;
-import org.sonar.api.issue.condition.NotCondition;
-
-public class ActionDefinition implements ServerExtension {
-
- public static final String FAKE_PROPERTY = "fake";
-
- private final Actions actions;
-
- public ActionDefinition(Actions actions) {
- this.actions = actions;
- }
-
- public void start() {
- actions.add("fake")
- .setConditions(
- new HasResolution(Issue.RESOLUTION_FIXED),
- new NotCondition(new HasIssuePropertyCondition(FAKE_PROPERTY))
- )
- .setFunctions(new Function() {
- @Override
- public void execute(Context context) {
- context.setAttribute(FAKE_PROPERTY, "fake action");
- context.addComment("New Comment from fake action");
- }
- });
- }
-}
diff --git a/it/it-plugins/issue-action-plugin/src/main/java/IssueActionPlugin.java b/it/it-plugins/issue-action-plugin/src/main/java/IssueActionPlugin.java
deleted file mode 100644
index 51f7e2bca53..00000000000
--- a/it/it-plugins/issue-action-plugin/src/main/java/IssueActionPlugin.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-import org.sonar.api.SonarPlugin;
-
-import java.util.Arrays;
-import java.util.List;
-
-public class IssueActionPlugin extends SonarPlugin {
-
- public List getExtensions() {
- return Arrays.asList(
- ActionDefinition.class
- );
- }
-
-}
diff --git a/it/it-plugins/issue-action-plugin/src/main/resources/org/sonar/l10n/issueaction.properties b/it/it-plugins/issue-action-plugin/src/main/resources/org/sonar/l10n/issueaction.properties
deleted file mode 100644
index f507ceed575..00000000000
--- a/it/it-plugins/issue-action-plugin/src/main/resources/org/sonar/l10n/issueaction.properties
+++ /dev/null
@@ -1,21 +0,0 @@
-#
-# SonarQube, open source software quality management tool.
-# Copyright (C) 2008-2014 SonarSource
-# mailto:contact AT sonarsource DOT com
-#
-# SonarQube is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 3 of the License, or (at your option) any later version.
-#
-# SonarQube is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-
-issue.action.fake.formlink=Fake
diff --git a/it/it-plugins/pom.xml b/it/it-plugins/pom.xml
index dfaf77516f2..71023da0185 100644
--- a/it/it-plugins/pom.xml
+++ b/it/it-plugins/pom.xml
@@ -36,7 +36,6 @@
<module>dashboard-plugin</module>
<module>extension-lifecycle-plugin</module>
<module>global-property-change-plugin</module>
- <module>issue-action-plugin</module>
<module>l10n-fr-pack</module>
<module>license-plugin</module>
<module>oauth2-auth-plugin</module>