use of org.gradle.tooling.model.eclipse.EclipseWorkspace in project gradle by gradle.
the class EclipseModelBuilder method calculateReservedProjectNames.
private List<String> calculateReservedProjectNames(ProjectInternal rootProject, EclipseRuntime parameter) {
if (parameter == null) {
return Collections.emptyList();
}
EclipseWorkspace workspace = parameter.getWorkspace();
if (workspace == null) {
return Collections.emptyList();
}
List<EclipseWorkspaceProject> projects = workspace.getProjects();
if (projects == null) {
return Collections.emptyList();
}
List<String> reservedProjectNames = new ArrayList<>();
List<EclipseWorkspaceProject> externalProjects = gatherExternalProjects(rootProject, projects);
for (EclipseWorkspaceProject externalProject : externalProjects) {
reservedProjectNames.add(externalProject.getName());
}
return reservedProjectNames;
}
Aggregations