|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.maven.jelly.tags.maven.WerkzDependencyResolver
THIS CLASS IS NOT THREADSAFE.
| Constructor Summary | |
WerkzDependencyResolver()
|
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WerkzDependencyResolver()
| Method Detail |
public void clear()
DependencyResolverInterface
clear in interface DependencyResolverInterfaceDependencyResolverInterface.clear()public void setProjects(java.util.List projects)
DependencyResolverInterface
setProjects in interface DependencyResolverInterfaceprojects - List of projects.DependencyResolverInterface.setProjects(java.util.List)protected ProjectGoal getExistingGoal(Project project)
project - the project to retrieve a goal from
protected ProjectGoal getOrCreateGoal(Project project,
boolean sourceBuild)
project - sourceBuild -
public void buildGraph()
throws CyclicGoalChainException
CyclicGoalChainException
public java.util.List getSortedDependencies(Project project)
throws DependencyResolverException
DependencyResolverInterface
getSortedDependencies 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
DependencyResolverInterface
getSortedDependencies 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
DependencyResolverInterface
getSortedDependencies in interface DependencyResolverInterfacesourceBuild - Flag to indicate we are performing a source build.
DependencyResolverException - If an error occurs while processing the graph.DependencyResolverInterface.getSortedDependencies(boolean)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||