Package org.apache.maven.execution
Class DefaultMavenExecutionResult
java.lang.Object
org.apache.maven.execution.DefaultMavenExecutionResult
- All Implemented Interfaces:
MavenExecutionResult
- Author:
- Jason van Zyl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBuildSummary
(BuildSummary summary) Add the specified build summary.getBuildSummary
(MavenProject project) Gets the build summary for the specified project.boolean
setDependencyResolutionResult
(DependencyResolutionResult dependencyResolutionResult) setProject
(MavenProject project) setTopologicallySortedProjects
(List<MavenProject> topologicallySortedProjects)
-
Constructor Details
-
DefaultMavenExecutionResult
public DefaultMavenExecutionResult()
-
-
Method Details
-
setProject
- Specified by:
setProject
in interfaceMavenExecutionResult
-
getProject
- Specified by:
getProject
in interfaceMavenExecutionResult
-
setTopologicallySortedProjects
public MavenExecutionResult setTopologicallySortedProjects(List<MavenProject> topologicallySortedProjects) - Specified by:
setTopologicallySortedProjects
in interfaceMavenExecutionResult
-
getTopologicallySortedProjects
- Specified by:
getTopologicallySortedProjects
in interfaceMavenExecutionResult
- Returns:
- the sorted list, or an empty list if there are no projects.
-
getDependencyResolutionResult
- Specified by:
getDependencyResolutionResult
in interfaceMavenExecutionResult
-
setDependencyResolutionResult
public MavenExecutionResult setDependencyResolutionResult(DependencyResolutionResult dependencyResolutionResult) - Specified by:
setDependencyResolutionResult
in interfaceMavenExecutionResult
-
getExceptions
- Specified by:
getExceptions
in interfaceMavenExecutionResult
-
addException
- Specified by:
addException
in interfaceMavenExecutionResult
-
hasExceptions
public boolean hasExceptions()- Specified by:
hasExceptions
in interfaceMavenExecutionResult
-
getBuildSummary
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
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
.
-