use of org.gradle.openapi.external.foundation.ProjectVersion1 in project gradle by gradle.
the class ProjectWrapper method convertProjects.
/**
* Converts the list of ProjectView objects to ProjectVersion1 objects. It just wraps them.
*
* @param projectViewList the source projects
* @return the projects wrapped in ProjectWrappers.
*/
public static List<ProjectVersion1> convertProjects(List<ProjectView> projectViewList) {
List<ProjectVersion1> returnProjects = new ArrayList<ProjectVersion1>();
if (projectViewList != null) {
Iterator<ProjectView> projectViewIterator = projectViewList.iterator();
while (projectViewIterator.hasNext()) {
ProjectView projectView = projectViewIterator.next();
returnProjects.add(new ProjectWrapper(projectView));
}
}
return returnProjects;
}
Aggregations