public class WerkzDependencyResolver extends java.lang.Object implements DependencyResolverInterface
| Constructor and Description |
|---|
WerkzDependencyResolver() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildGraph()
Builds the projects / dependencies into an internal acyclic directed graph
|
void |
clear()
Clear the project list and set the graph built flag to false.
|
protected ProjectGoal |
getExistingGoal(Project project)
Retrieves the existing goal for a project (based on Id).
|
protected ProjectGoal |
getOrCreateGoal(Project project,
boolean sourceBuild)
Retrieves the existing goal for a project (based on Id).
|
java.util.List |
getProjects(java.util.List goals,
boolean sourceBuild)
Filters the given list of goals, and returns the associated projects
If param:sourceBuild == true, include goal
If param:sourceBuild == false, include goal if goal:sourceBuild == true
|
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.
|
public void clear()
DependencyResolverInterfaceclear in interface DependencyResolverInterfaceDependencyResolverInterface.clear()public void setProjects(java.util.List projects)
DependencyResolverInterfacesetProjects in interface DependencyResolverInterfaceprojects - List of projects.DependencyResolverInterface.setProjects(java.util.List)protected ProjectGoal getExistingGoal(Project project)
project - the project to retrieve a goal fromprotected ProjectGoal getOrCreateGoal(Project project, boolean sourceBuild)
project - sourceBuild - public void buildGraph()
throws CyclicGoalChainException
CyclicGoalChainExceptionpublic java.util.List getSortedDependencies(Project project) throws DependencyResolverException
DependencyResolverInterfacegetSortedDependencies in interface DependencyResolverInterfaceproject - The project to use as the head of the graph.DependencyResolverException - If an error occurs while processing the graph.DependencyResolverInterface.getSortedDependencies(org.apache.maven.project.Project)public java.util.List getProjects(java.util.List goals,
boolean sourceBuild)
goals - sourceBuild - public java.util.List getSortedDependencies(Project project, boolean sourceBuild) throws DependencyResolverException
DependencyResolverInterfacegetSortedDependencies in interface DependencyResolverInterfaceproject - The project to use as the head of the graph.sourceBuild - Indicate we are performing a source build.DependencyResolverException - If an error occurs while processing the graph.DependencyResolverInterface.getSortedDependencies(org.apache.maven.project.Project, boolean)public java.util.List getSortedDependencies(boolean sourceBuild)
throws DependencyResolverException
DependencyResolverInterfacegetSortedDependencies in interface DependencyResolverInterfacesourceBuild - Flag to indicate we are performing a source build.DependencyResolverException - If an error occurs while processing the graph.DependencyResolverInterface.getSortedDependencies(boolean)Copyright © 2001-2013 Apache Software Foundation. All Rights Reserved.