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;
}
Aggregations