Package org.apache.maven.execution
Class DefaultMavenExecutionResult
- java.lang.Object
-
- org.apache.maven.execution.DefaultMavenExecutionResult
-
- All Implemented Interfaces:
MavenExecutionResult
public class DefaultMavenExecutionResult extends java.lang.Object implements MavenExecutionResult
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<MavenProject,BuildSummary>buildSummariesprivate DependencyResolutionResultdependencyResolutionResultprivate java.util.List<java.lang.Throwable>exceptionsprivate MavenProjectprojectprivate java.util.List<MavenProject>topologicallySortedProjects
-
Constructor Summary
Constructors Constructor Description DefaultMavenExecutionResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBuildSummary(BuildSummary summary)Add the specified build summary.MavenExecutionResultaddException(java.lang.Throwable t)BuildSummarygetBuildSummary(MavenProject project)Gets the build summary for the specified project.DependencyResolutionResultgetDependencyResolutionResult()java.util.List<java.lang.Throwable>getExceptions()MavenProjectgetProject()java.util.List<MavenProject>getTopologicallySortedProjects()booleanhasExceptions()MavenExecutionResultsetDependencyResolutionResult(DependencyResolutionResult dependencyResolutionResult)MavenExecutionResultsetProject(MavenProject project)MavenExecutionResultsetTopologicallySortedProjects(java.util.List<MavenProject> topologicallySortedProjects)
-
-
-
Field Detail
-
project
private MavenProject project
-
topologicallySortedProjects
private java.util.List<MavenProject> topologicallySortedProjects
-
dependencyResolutionResult
private DependencyResolutionResult dependencyResolutionResult
-
exceptions
private final java.util.List<java.lang.Throwable> exceptions
-
buildSummaries
private final java.util.Map<MavenProject,BuildSummary> buildSummaries
-
-
Method Detail
-
setProject
public MavenExecutionResult setProject(MavenProject project)
- Specified by:
setProjectin interfaceMavenExecutionResult
-
getProject
public MavenProject getProject()
- Specified by:
getProjectin interfaceMavenExecutionResult
-
setTopologicallySortedProjects
public MavenExecutionResult setTopologicallySortedProjects(java.util.List<MavenProject> topologicallySortedProjects)
- Specified by:
setTopologicallySortedProjectsin interfaceMavenExecutionResult
-
getTopologicallySortedProjects
public java.util.List<MavenProject> getTopologicallySortedProjects()
- Specified by:
getTopologicallySortedProjectsin interfaceMavenExecutionResult- Returns:
- the sorted list, or an empty list if there are no projects.
-
getDependencyResolutionResult
public DependencyResolutionResult getDependencyResolutionResult()
- Specified by:
getDependencyResolutionResultin interfaceMavenExecutionResult
-
setDependencyResolutionResult
public MavenExecutionResult setDependencyResolutionResult(DependencyResolutionResult dependencyResolutionResult)
- Specified by:
setDependencyResolutionResultin interfaceMavenExecutionResult
-
getExceptions
public java.util.List<java.lang.Throwable> getExceptions()
- Specified by:
getExceptionsin interfaceMavenExecutionResult
-
addException
public MavenExecutionResult addException(java.lang.Throwable t)
- Specified by:
addExceptionin interfaceMavenExecutionResult
-
hasExceptions
public boolean hasExceptions()
- Specified by:
hasExceptionsin interfaceMavenExecutionResult
-
getBuildSummary
public BuildSummary getBuildSummary(MavenProject project)
Description copied from interface:MavenExecutionResultGets the build summary for the specified project.- Specified by:
getBuildSummaryin interfaceMavenExecutionResult- Parameters:
project- The project to get the build summary for, must not benull.- Returns:
- The build summary for the project or
nullif the project has not been built (yet).
-
addBuildSummary
public void addBuildSummary(BuildSummary summary)
Description copied from interface:MavenExecutionResultAdd the specified build summary.- Specified by:
addBuildSummaryin interfaceMavenExecutionResult- Parameters:
summary- The build summary to add, must not benull.
-
-