public class ProjectSorter extends Object
Constructor and Description |
---|
ProjectSorter(Collection<MavenProject> projects)
Sort a list of projects.
|
Modifier and Type | Method and Description |
---|---|
org.codehaus.plexus.util.dag.DAG |
getDAG() |
List<String> |
getDependencies(String id) |
List<String> |
getDependents(String id) |
static String |
getId(MavenProject project) |
Map<String,MavenProject> |
getProjectMap() |
List<MavenProject> |
getSortedProjects() |
MavenProject |
getTopLevelProject() |
boolean |
hasMultipleProjects() |
public ProjectSorter(Collection<MavenProject> projects) throws org.codehaus.plexus.util.dag.CycleDetectedException, DuplicateProjectException
DuplicateProjectException
- if any projects are duplicated by idorg.codehaus.plexus.util.dag.CycleDetectedException
public MavenProject getTopLevelProject()
public List<MavenProject> getSortedProjects()
public boolean hasMultipleProjects()
public static String getId(MavenProject project)
public org.codehaus.plexus.util.dag.DAG getDAG()
public Map<String,MavenProject> getProjectMap()
Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.