Search in sources :

Example 1 with TaskVersion1

use of org.gradle.openapi.external.foundation.TaskVersion1 in project gradle by gradle.

the class TaskWrapper method convertTasks.

/**
     * Converts the list of TaskView objects to TaskVersion1 objects. It just wraps them.
     *
     * @param taskViewList the source tasks
     * @return the tasks wrapped in TaskWrappers.
     */
public static List<TaskVersion1> convertTasks(List<TaskView> taskViewList) {
    List<TaskVersion1> returnTasks = new ArrayList<TaskVersion1>();
    Iterator<TaskView> taskViewIterator = taskViewList.iterator();
    while (taskViewIterator.hasNext()) {
        TaskView taskView = taskViewIterator.next();
        returnTasks.add(new TaskWrapper(taskView));
    }
    return returnTasks;
}
Also used : TaskView(org.gradle.foundation.TaskView) ArrayList(java.util.ArrayList) TaskVersion1(org.gradle.openapi.external.foundation.TaskVersion1)

Aggregations

ArrayList (java.util.ArrayList)1 TaskView (org.gradle.foundation.TaskView)1 TaskVersion1 (org.gradle.openapi.external.foundation.TaskVersion1)1