org.apache.maven.jelly.tags.maven
Class GraphDependencyResolver

java.lang.Object
  extended byorg.apache.maven.jelly.tags.maven.GraphDependencyResolver
All Implemented Interfaces:
DependencyResolverInterface

public class GraphDependencyResolver
extends java.lang.Object
implements DependencyResolverInterface

Takes a list of maven projects and determines the overall dependency ordering among the project.

Version:
$Id: GraphDependencyResolver.java 112246 2004-11-06 14:18:06Z $
Author:
Jason van Zyl

Constructor Summary
GraphDependencyResolver()
          Default constructor.
 
Method Summary
 void clear()
          Clear the project list and set the graph built flag to false.
 java.util.List getSortedDependencies(boolean sourceBuild)
          Get the list of projects in dependency sorted order.
 java.util.List getSortedDependencies(Project project)
          Get the list of projects in dependency sorted order.
 java.util.List getSortedDependencies(Project project, boolean sourceBuild)
          Get the list of projects in dependency sorted order.
 void setProjects(java.util.List projects)
          Set a list of projects to process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphDependencyResolver

public GraphDependencyResolver()
Default constructor.

Method Detail

clear

public void clear()
Description copied from interface: DependencyResolverInterface
Clear the project list and set the graph built flag to false.

Specified by:
clear in interface DependencyResolverInterface
See Also:
DependencyResolverInterface.clear()

setProjects

public void setProjects(java.util.List projects)
Description copied from interface: DependencyResolverInterface
Set a list of projects to process.

Specified by:
setProjects in interface DependencyResolverInterface
Parameters:
projects - List of projects.
See Also:
DependencyResolverInterface.setProjects(List)

getSortedDependencies

public java.util.List getSortedDependencies(Project project)
Description copied from interface: DependencyResolverInterface
Get the list of projects in dependency sorted order.

Specified by:
getSortedDependencies in interface DependencyResolverInterface
Parameters:
project - The project to use as the head of the graph.
Returns:
The list of projects.
See Also:
DependencyResolverInterface.getSortedDependencies(Project)

getSortedDependencies

public java.util.List getSortedDependencies(Project project,
                                            boolean sourceBuild)
Description copied from interface: DependencyResolverInterface
Get the list of projects in dependency sorted order.

Specified by:
getSortedDependencies in interface DependencyResolverInterface
Parameters:
project - The project to use as the head of the graph.
sourceBuild - Indicate we are performing a source build.
Returns:
The list of projects.
See Also:
DependencyResolverInterface.getSortedDependencies(Project, boolean)

getSortedDependencies

public java.util.List getSortedDependencies(boolean sourceBuild)
Description copied from interface: DependencyResolverInterface
Get the list of projects in dependency sorted order.

Specified by:
getSortedDependencies in interface DependencyResolverInterface
Parameters:
sourceBuild - Flag to indicate we are performing a source build.
Returns:
The list of projects.
See Also:
DependencyResolverInterface.getSortedDependencies(boolean)


Copyright © 2001-2005 Apache Software Foundation. All Rights Reserved.