public class ProjectSorter extends Object
Constructor and Description |
---|
ProjectSorter(List<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(List<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 List<String> getDependents(String id)
public List<String> getDependencies(String id)
public static String getId(MavenProject project)
public org.codehaus.plexus.util.dag.DAG getDAG()
public Map<String,MavenProject> getProjectMap()
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.