| java.lang.Object org.apache.maven.project.ProjectSorter
ProjectSorter | public class ProjectSorter (Code) | | Sort projects by dependencies.
author: Brett Porter version: $Id: ProjectSorter.java 513038 2007-02-28 22:54:19Z jvanzyl $ |
Constructor Summary | |
public | ProjectSorter(List projects) Sort a list of projects.
- collect all the vertices for the projects that we want to build.
- iterate through the deps of each project and if that dep is within
the set of projects we want to build then add an edge, otherwise throw
the edge away because that dependency is not within the set of projects
we are trying to build.
|
ProjectSorter | public ProjectSorter(List projects) throws CycleDetectedException, DuplicateProjectException(Code) | | Sort a list of projects.
- collect all the vertices for the projects that we want to build.
- iterate through the deps of each project and if that dep is within
the set of projects we want to build then add an edge, otherwise throw
the edge away because that dependency is not within the set of projects
we are trying to build. we assume a closed set.
- do a topo sort on the graph that remains.
throws: DuplicateProjectException - if any projects are duplicated by id |
getSortedProjects | public List getSortedProjects()(Code) | | |
hasMultipleProjects | public boolean hasMultipleProjects()(Code) | | |
|
|