diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2013-01-15 11:38:07 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2013-01-15 11:38:07 +0100 |
commit | 67294f9bed4ef32d9dd353a325f5db325b95edb8 (patch) | |
tree | 1dd39b665ab70f2d4a77fbf928bc4d701fa1baf4 /plugins | |
parent | 507931a97c126501b7d4e0088784f629d30d1909 (diff) | |
download | sonarqube-67294f9bed4ef32d9dd353a325f5db325b95edb8.tar.gz sonarqube-67294f9bed4ef32d9dd353a325f5db325b95edb8.zip |
SONAR-4069, DEVACT-96 For the need of dev cockpit plugin,
these extensions have to be available for tasks
Diffstat (limited to 'plugins')
3 files changed, 5 insertions, 6 deletions
diff --git a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/DbCleanerPlugin.java b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/DbCleanerPlugin.java index ea37994b990..c797bb8c33b 100644 --- a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/DbCleanerPlugin.java +++ b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/DbCleanerPlugin.java @@ -20,7 +20,6 @@ package org.sonar.plugins.dbcleaner; import com.google.common.collect.ImmutableList; -import org.sonar.api.BatchExtension; import org.sonar.api.Properties; import org.sonar.api.Property; import org.sonar.api.PropertyType; @@ -61,7 +60,7 @@ import java.util.List; }) public final class DbCleanerPlugin extends SonarPlugin { - public List<Class<? extends BatchExtension>> getExtensions() { + public List getExtensions() { return ImmutableList.of( DefaultPeriodCleaner.class, DefaultPurgeTask.class, diff --git a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/api/PeriodCleaner.java b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/api/PeriodCleaner.java index fb3cc833f58..6dbef4fa92d 100644 --- a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/api/PeriodCleaner.java +++ b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/api/PeriodCleaner.java @@ -19,13 +19,13 @@ */ package org.sonar.plugins.dbcleaner.api; -import org.sonar.api.BatchExtension; +import org.sonar.api.TaskExtension; import org.sonar.api.resources.Project; /** * @deprecated in 2.14 */ @Deprecated -public interface PeriodCleaner extends BatchExtension { +public interface PeriodCleaner extends TaskExtension { void purge(Project project, int projectSnapshotId); } diff --git a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/api/PurgeTask.java b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/api/PurgeTask.java index 2a40bf84b0a..af54168486e 100644 --- a/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/api/PurgeTask.java +++ b/plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/api/PurgeTask.java @@ -20,13 +20,13 @@ package org.sonar.plugins.dbcleaner.api; import com.google.common.annotations.Beta; -import org.sonar.api.BatchExtension; +import org.sonar.api.TaskExtension; /** * @since 2.14 */ @Beta -public interface PurgeTask extends BatchExtension { +public interface PurgeTask extends TaskExtension { /** * Purges the data related to a tree of resources. * |