use of org.gradle.plugins.ide.internal.tooling.model.LaunchableGradleProjectTask in project gradle by gradle.
the class GradleProjectBuilder method tasks.
private static List<LaunchableGradleTask> tasks(DefaultGradleProject owner, TaskContainerInternal tasks) {
tasks.discoverTasks();
SortedSet<String> taskNames = tasks.getNames();
List<LaunchableGradleTask> out = new ArrayList<LaunchableGradleTask>(taskNames.size());
for (String taskName : taskNames) {
Task t = tasks.findByName(taskName);
if (t != null) {
out.add(buildFromTask(new LaunchableGradleProjectTask(), t).setProject(owner).setProjectIdentifier(owner.getProjectIdentifier()));
}
}
return out;
}
Aggregations