aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/main/java/org/sonar/batch/tasks/TaskDefinition.java
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-03-05 16:22:31 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2013-03-05 16:22:31 +0100
commit487e90555204c8e656c775efce91c90e98d90e36 (patch)
tree78feca0526d4e208b97228c5103e6443296a96b3 /sonar-batch/src/main/java/org/sonar/batch/tasks/TaskDefinition.java
parent7509fbafb262c92c3603d5b17387c232a5748327 (diff)
downloadsonarqube-487e90555204c8e656c775efce91c90e98d90e36.tar.gz
sonarqube-487e90555204c8e656c775efce91c90e98d90e36.zip
Revert "SONAR-4069 Remove Task and TaskDefinition from API."
This reverts commit 7509fbafb262c92c3603d5b17387c232a5748327.
Diffstat (limited to 'sonar-batch/src/main/java/org/sonar/batch/tasks/TaskDefinition.java')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/tasks/TaskDefinition.java84
1 files changed, 0 insertions, 84 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/tasks/TaskDefinition.java b/sonar-batch/src/main/java/org/sonar/batch/tasks/TaskDefinition.java
deleted file mode 100644
index aea3ddaa56e..00000000000
--- a/sonar-batch/src/main/java/org/sonar/batch/tasks/TaskDefinition.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * Sonar, open source software quality management tool.
- * Copyright (C) 2008-2012 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * Sonar 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.
- *
- * Sonar 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 Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.batch.tasks;
-
-import org.sonar.api.task.TaskComponent;
-
-/**
- * Implement this interface to provide a new task.
- * @since 3.5
- */
-public class TaskDefinition implements TaskComponent {
-
- private String name;
- private String description;
- private String command;
- private Class<? extends Task> task;
-
- private TaskDefinition() {
-
- }
-
- public static TaskDefinition create() {
- return new TaskDefinition();
- }
-
- public String getName() {
- return name;
- }
-
- public TaskDefinition setName(String name) {
- this.name = name;
- return this;
- }
-
- public String getDescription() {
- return description;
- }
-
- public TaskDefinition setDescription(String description) {
- this.description = description;
- return this;
- }
-
- public String getCommand() {
- return command;
- }
-
- public TaskDefinition setCommand(String command) {
- this.command = command;
- return this;
- }
-
- public Class<? extends Task> getTask() {
- return task;
- }
-
- public TaskDefinition setTask(Class<? extends Task> task) {
- this.task = task;
- return this;
- }
-
- @Override
- public String toString() {
- return "Definition of task " + task + " with command " + command;
- }
-
-}