org.apache.maven.project
Class ProjectSorter

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

public class ProjectSorter
extends Object

Sort projects by dependencies.

Version:
$Id: ProjectSorter.java 793745 2009-07-13 23:24:10Z jdcasey $
Author:
Brett Porter

Constructor Summary
ProjectSorter(List projects)
          Sort a list of projects.
ProjectSorter(List projects, List selectedProjectNames, String resumeFrom, boolean make, boolean makeDependents)
           
 
Method Summary
 org.codehaus.plexus.util.dag.DAG getDAG()
           
 List getDependents(String id)
           
 Map 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 projects)
              throws org.codehaus.plexus.util.dag.CycleDetectedException,
                     DuplicateProjectException,
                     MissingProjectException
Sort a list of projects.

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

ProjectSorter

public ProjectSorter(List projects,
                     List selectedProjectNames,
                     String resumeFrom,
                     boolean make,
                     boolean makeDependents)
              throws org.codehaus.plexus.util.dag.CycleDetectedException,
                     DuplicateProjectException,
                     MissingProjectException
Throws:
org.codehaus.plexus.util.dag.CycleDetectedException
DuplicateProjectException
MissingProjectException
Method Detail

getTopLevelProject

public MavenProject getTopLevelProject()

getSortedProjects

public List<MavenProject> getSortedProjects()

hasMultipleProjects

public boolean hasMultipleProjects()

getDependents

public List getDependents(String id)

getDAG

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

getProjectMap

public Map getProjectMap()


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