public class DefaultMavenExecutionResult extends Object implements MavenExecutionResult
Constructor and Description |
---|
DefaultMavenExecutionResult() |
Modifier and Type | Method and Description |
---|---|
void |
addBuildSummary(BuildSummary summary)
Add the specified build summary.
|
MavenExecutionResult |
addException(Throwable t) |
boolean |
canResume()
Indicates whether or not the build could be resumed by a second invocation of Maven.
|
BuildSummary |
getBuildSummary(MavenProject project)
Gets the build summary for the specified project.
|
DependencyResolutionResult |
getDependencyResolutionResult() |
List<Throwable> |
getExceptions() |
MavenProject |
getProject() |
List<MavenProject> |
getTopologicallySortedProjects() |
boolean |
hasExceptions() |
void |
setCanResume(boolean canResume)
Indicate that the build can or cannot be resumed by a second invocation of Maven.
|
MavenExecutionResult |
setDependencyResolutionResult(DependencyResolutionResult dependencyResolutionResult) |
MavenExecutionResult |
setProject(MavenProject project) |
MavenExecutionResult |
setTopologicallySortedProjects(List<MavenProject> topologicallySortedProjects) |
public MavenExecutionResult setProject(MavenProject project)
setProject
in interface MavenExecutionResult
public MavenProject getProject()
getProject
in interface MavenExecutionResult
public MavenExecutionResult setTopologicallySortedProjects(List<MavenProject> topologicallySortedProjects)
setTopologicallySortedProjects
in interface MavenExecutionResult
public List<MavenProject> getTopologicallySortedProjects()
getTopologicallySortedProjects
in interface MavenExecutionResult
public DependencyResolutionResult getDependencyResolutionResult()
getDependencyResolutionResult
in interface MavenExecutionResult
public MavenExecutionResult setDependencyResolutionResult(DependencyResolutionResult dependencyResolutionResult)
setDependencyResolutionResult
in interface MavenExecutionResult
public List<Throwable> getExceptions()
getExceptions
in interface MavenExecutionResult
public MavenExecutionResult addException(Throwable t)
addException
in interface MavenExecutionResult
public boolean hasExceptions()
hasExceptions
in interface MavenExecutionResult
public BuildSummary getBuildSummary(MavenProject project)
MavenExecutionResult
getBuildSummary
in interface MavenExecutionResult
project
- The project to get the build summary for, must not be null
.null
if the project has not been built (yet).public void addBuildSummary(BuildSummary summary)
MavenExecutionResult
addBuildSummary
in interface MavenExecutionResult
summary
- The build summary to add, must not be null
.public boolean canResume()
MavenExecutionResult
canResume
in interface MavenExecutionResult
true
when it is possible to resume the build, false
otherwise.BuildResumptionDataRepository
public void setCanResume(boolean canResume)
MavenExecutionResult
setCanResume
in interface MavenExecutionResult
canResume
- true
when it is possible to resume the build, false
otherwise.BuildResumptionDataRepository
,
MavenExecutionResult.canResume()
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.