Package org.apache.maven.execution
Class DefaultMavenExecutionResult
- java.lang.Object
-
- org.apache.maven.execution.DefaultMavenExecutionResult
-
- All Implemented Interfaces:
MavenExecutionResult
public class DefaultMavenExecutionResult extends Object implements MavenExecutionResult
- Author:
- Jason van Zyl
-
-
Constructor Summary
Constructors Constructor Description DefaultMavenExecutionResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBuildSummary(BuildSummary summary)
Add the specified build summary.MavenExecutionResult
addException(Throwable t)
BuildSummary
getBuildSummary(MavenProject project)
Gets the build summary for the specified project.DependencyResolutionResult
getDependencyResolutionResult()
List<Throwable>
getExceptions()
MavenProject
getProject()
List<MavenProject>
getTopologicallySortedProjects()
boolean
hasExceptions()
MavenExecutionResult
setDependencyResolutionResult(DependencyResolutionResult dependencyResolutionResult)
MavenExecutionResult
setProject(MavenProject project)
MavenExecutionResult
setTopologicallySortedProjects(List<MavenProject> topologicallySortedProjects)
-
-
-
Method Detail
-
setProject
public MavenExecutionResult setProject(MavenProject project)
- Specified by:
setProject
in interfaceMavenExecutionResult
-
getProject
public MavenProject getProject()
- Specified by:
getProject
in interfaceMavenExecutionResult
-
setTopologicallySortedProjects
public MavenExecutionResult setTopologicallySortedProjects(List<MavenProject> topologicallySortedProjects)
- Specified by:
setTopologicallySortedProjects
in interfaceMavenExecutionResult
-
getTopologicallySortedProjects
public List<MavenProject> getTopologicallySortedProjects()
- Specified by:
getTopologicallySortedProjects
in interfaceMavenExecutionResult
- Returns:
- the sorted list, or an empty list if there are no projects.
-
getDependencyResolutionResult
public DependencyResolutionResult getDependencyResolutionResult()
- Specified by:
getDependencyResolutionResult
in interfaceMavenExecutionResult
-
setDependencyResolutionResult
public MavenExecutionResult setDependencyResolutionResult(DependencyResolutionResult dependencyResolutionResult)
- Specified by:
setDependencyResolutionResult
in interfaceMavenExecutionResult
-
getExceptions
public List<Throwable> getExceptions()
- Specified by:
getExceptions
in interfaceMavenExecutionResult
-
addException
public MavenExecutionResult addException(Throwable t)
- Specified by:
addException
in interfaceMavenExecutionResult
-
hasExceptions
public boolean hasExceptions()
- Specified by:
hasExceptions
in interfaceMavenExecutionResult
-
getBuildSummary
public BuildSummary getBuildSummary(MavenProject project)
Description copied from interface:MavenExecutionResult
Gets the build summary for the specified project.- Specified by:
getBuildSummary
in interfaceMavenExecutionResult
- Parameters:
project
- The project to get the build summary for, must not benull
.- Returns:
- The build summary for the project or
null
if the project has not been built (yet).
-
addBuildSummary
public void addBuildSummary(BuildSummary summary)
Description copied from interface:MavenExecutionResult
Add the specified build summary.- Specified by:
addBuildSummary
in interfaceMavenExecutionResult
- Parameters:
summary
- The build summary to add, must not benull
.
-
-