Search in sources :

Example 1 with DefaultEclipseTask

use of org.gradle.plugins.ide.internal.tooling.eclipse.DefaultEclipseTask in project gradle by gradle.

the class EclipseModelBuilder method populateEclipseProjectTasks.

private static void populateEclipseProjectTasks(DefaultEclipseProject eclipseProject, Iterable<Task> projectTasks) {
    List<DefaultEclipseTask> tasks = new ArrayList<>();
    for (Task t : projectTasks) {
        tasks.add(new DefaultEclipseTask(eclipseProject, t.getPath(), t.getName(), t.getDescription()));
    }
    eclipseProject.setTasks(tasks);
}
Also used : Task(org.gradle.api.Task) DefaultEclipseTask(org.gradle.plugins.ide.internal.tooling.eclipse.DefaultEclipseTask) DefaultEclipseTask(org.gradle.plugins.ide.internal.tooling.eclipse.DefaultEclipseTask) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 Task (org.gradle.api.Task)1 DefaultEclipseTask (org.gradle.plugins.ide.internal.tooling.eclipse.DefaultEclipseTask)1