org.apache.maven.plugin.reactor
Class SuperProjectSorter

java.lang.Object
  extended by org.apache.maven.plugin.reactor.SuperProjectSorter

public class SuperProjectSorter
extends java.lang.Object

Sort projects by dependencies. Just like ProjectSorter from maven-project, but this one exposes the DAG and the projectMap in getters.

Author:
Dan Fabulich, Brett Porter

Constructor Summary
SuperProjectSorter(java.util.List projects)
          Sort a list of projects.
 
Method Summary
 org.codehaus.plexus.util.dag.DAG getDAG()
           
 java.util.List getDependents(java.lang.String id)
           
 java.util.Map getProjectMap()
           
 java.util.List getSortedProjects()
           
 org.apache.maven.project.MavenProject getTopLevelProject()
           
 boolean hasMultipleProjects()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuperProjectSorter

public SuperProjectSorter(java.util.List projects)
                   throws org.codehaus.plexus.util.dag.CycleDetectedException,
                          org.apache.maven.project.DuplicateProjectException
Sort a list of projects.

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

getTopLevelProject

public org.apache.maven.project.MavenProject getTopLevelProject()

getSortedProjects

public java.util.List getSortedProjects()

hasMultipleProjects

public boolean hasMultipleProjects()

getDependents

public java.util.List getDependents(java.lang.String id)

getDAG

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

getProjectMap

public java.util.Map getProjectMap()


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.