public class DependencyResolver extends java.lang.Object implements DependencyResolverInterface
Constructor and Description |
---|
DependencyResolver()
Creates the dependency resolver.
|
DependencyResolver(DependencyResolverInterface impl)
Creates the dependency resolver with a specific implementation
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the project list and set the graph built flag to false.
|
static Project |
getProject(java.util.List projects,
java.lang.String id) |
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 DependencyResolver()
Object.Object()
public DependencyResolver(DependencyResolverInterface impl)
impl
- public void clear()
DependencyResolverInterface
clear
in interface DependencyResolverInterface
DependencyResolverInterface.clear()
public void setProjects(java.util.List projects)
DependencyResolverInterface
setProjects
in interface DependencyResolverInterface
projects
- List of projects.DependencyResolverInterface.setProjects(java.util.List)
public java.util.List getSortedDependencies(Project project) throws DependencyResolverException
DependencyResolverInterface
getSortedDependencies
in interface DependencyResolverInterface
project
- 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 getSortedDependencies(Project project, boolean sourceBuild) throws DependencyResolverException
DependencyResolverInterface
getSortedDependencies
in interface DependencyResolverInterface
project
- 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 DependencyResolverInterface
sourceBuild
- Flag to indicate we are performing a source build.DependencyResolverException
- If an error occurs while processing the graph.DependencyResolverInterface.getSortedDependencies(boolean)
public static Project getProject(java.util.List projects, java.lang.String id)
Copyright © 2001-2013 Apache Software Foundation. All Rights Reserved.