Package org.apache.maven.execution
Class DefaultMavenExecutionResult
java.lang.Object
org.apache.maven.execution.DefaultMavenExecutionResult
- All Implemented Interfaces:
MavenExecutionResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBuildSummary
(BuildSummary summary) Add the specified build summary.boolean
Indicates whether or not the build could be resumed by a second invocation of Maven.getBuildSummary
(MavenProject project) Gets the build summary for the specified project.boolean
void
setCanResume
(boolean canResume) Indicate that the build can or cannot be resumed by a second invocation of Maven.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
.
-
canResume
public boolean canResume()Description copied from interface:MavenExecutionResult
Indicates whether or not the build could be resumed by a second invocation of Maven.- Specified by:
canResume
in interfaceMavenExecutionResult
- Returns:
true
when it is possible to resume the build,false
otherwise.- See Also:
-
setCanResume
public void setCanResume(boolean canResume) Description copied from interface:MavenExecutionResult
Indicate that the build can or cannot be resumed by a second invocation of Maven.- Specified by:
setCanResume
in interfaceMavenExecutionResult
- Parameters:
canResume
-true
when it is possible to resume the build,false
otherwise.- See Also:
-