org.apache.maven.project
Class ProjectSorter

java.lang.Object
  extended by org.apache.maven.project.ProjectSorter

public class ProjectSorter
extends Object


Constructor Summary
ProjectSorter(List<MavenProject> projects)
          Sort a list of projects.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectSorter

public ProjectSorter(List<MavenProject> projects)
              throws org.codehaus.plexus.util.dag.CycleDetectedException,
                     DuplicateProjectException
Sort a list of projects.

Throws:
DuplicateProjectException - if any projects are duplicated by id
org.codehaus.plexus.util.dag.CycleDetectedException
Method Detail

getTopLevelProject

public MavenProject getTopLevelProject()

getSortedProjects

public List<MavenProject> getSortedProjects()

hasMultipleProjects

public boolean hasMultipleProjects()

getDependents

public List<String> getDependents(String id)

getDependencies

public List<String> getDependencies(String id)

getId

public static String getId(MavenProject project)

getDAG

public org.codehaus.plexus.util.dag.DAG getDAG()

getProjectMap

public Map<String,MavenProject> getProjectMap()


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.