hudson.maven.reporters
Class ReportCollector

java.lang.Object
  extended by hudson.maven.MavenReporter
      extended by hudson.maven.reporters.ReportCollector
All Implemented Interfaces:
ExtensionPoint, MavenProjectActionBuilder, Describable<MavenReporter>, Serializable

public class ReportCollector
extends MavenReporter

Watches out for executions of MavenReport mojos and record its output.

Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Nested Class Summary
static class ReportCollector.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
ReportCollector()
           
 
Method Summary
 ReportCollector.DescriptorImpl getDescriptor()
          Gets the descriptor for this instance.
 boolean leaveModule(MavenBuildProxy build, org.apache.maven.project.MavenProject pom, BuildListener listener)
          Called when the build leaves the current MavenProject.
 boolean postExecute(MavenBuildProxy build, org.apache.maven.project.MavenProject pom, MojoInfo mojo, BuildListener listener, Throwable error)
          Called after execution of a single mojo.
 
Methods inherited from class hudson.maven.MavenReporter
end, enterModule, getAggregatedProjectAction, getProjectAction, getProjectActions, postBuild, preBuild, preExecute, reportGenerated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportCollector

public ReportCollector()
Method Detail

postExecute

public boolean postExecute(MavenBuildProxy build,
                           org.apache.maven.project.MavenProject pom,
                           MojoInfo mojo,
                           BuildListener listener,
                           Throwable error)
                    throws InterruptedException,
                           IOException
Description copied from class: MavenReporter
Called after execution of a single mojo.

See MavenReporter.preExecute(hudson.maven.MavenBuildProxy, org.apache.maven.project.MavenProject, hudson.maven.MojoInfo, hudson.model.BuildListener) for the contract.

Overrides:
postExecute in class MavenReporter
error - If mojo execution failed with MojoFailureException or MojoExecutionException, this method is still invoked with those error objects. If mojo executed successfully, this parameter is null.
Throws:
InterruptedException
IOException

leaveModule

public boolean leaveModule(MavenBuildProxy build,
                           org.apache.maven.project.MavenProject pom,
                           BuildListener listener)
                    throws InterruptedException,
                           IOException
Description copied from class: MavenReporter
Called when the build leaves the current MavenProject.

Overrides:
leaveModule in class MavenReporter
Throws:
InterruptedException
IOException
See Also:
MavenReporter.enterModule(hudson.maven.MavenBuildProxy, org.apache.maven.project.MavenProject, hudson.model.BuildListener)

getDescriptor

public ReportCollector.DescriptorImpl getDescriptor()
Description copied from interface: Describable
Gets the descriptor for this instance.

Descriptor is a singleton for every concrete Describable implementation, so if a.getClass()==b.getClass() then a.getDescriptor()==b.getDescriptor() must hold.

Specified by:
getDescriptor in interface Describable<MavenReporter>
Overrides:
getDescriptor in class MavenReporter


Copyright © 2004-2013. All Rights Reserved.