org.apache.maven.execution
Class DefaultMavenExecutionResult

java.lang.Object
  extended by org.apache.maven.execution.DefaultMavenExecutionResult
All Implemented Interfaces:
MavenExecutionResult

public class DefaultMavenExecutionResult
extends Object
implements MavenExecutionResult

Author:
Jason van Zyl

Constructor Summary
DefaultMavenExecutionResult()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMavenExecutionResult

public DefaultMavenExecutionResult()
Method Detail

setProject

public MavenExecutionResult setProject(MavenProject project)
Specified by:
setProject in interface MavenExecutionResult

getProject

public MavenProject getProject()
Specified by:
getProject in interface MavenExecutionResult

setTopologicallySortedProjects

public MavenExecutionResult setTopologicallySortedProjects(List<MavenProject> topologicallySortedProjects)
Specified by:
setTopologicallySortedProjects in interface MavenExecutionResult

getTopologicallySortedProjects

public List<MavenProject> getTopologicallySortedProjects()
Specified by:
getTopologicallySortedProjects in interface MavenExecutionResult
Returns:
the sorted list, or an empty list if there are no projects.

getDependencyResolutionResult

public DependencyResolutionResult getDependencyResolutionResult()
Specified by:
getDependencyResolutionResult in interface MavenExecutionResult

setDependencyResolutionResult

public MavenExecutionResult setDependencyResolutionResult(DependencyResolutionResult dependencyResolutionResult)
Specified by:
setDependencyResolutionResult in interface MavenExecutionResult

getExceptions

public List<Throwable> getExceptions()
Specified by:
getExceptions in interface MavenExecutionResult

addException

public MavenExecutionResult addException(Throwable t)
Specified by:
addException in interface MavenExecutionResult

hasExceptions

public boolean hasExceptions()
Specified by:
hasExceptions in interface MavenExecutionResult

getBuildSummary

public BuildSummary getBuildSummary(MavenProject project)
Description copied from interface: MavenExecutionResult
Gets the build summary for the specified project.

Specified by:
getBuildSummary in interface MavenExecutionResult
Parameters:
project - The project to get the build summary for, must not be null.
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 interface MavenExecutionResult
Parameters:
summary - The build summary to add, must not be null.


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.