hudson.plugins.helpers
クラス AbstractMavenReporterImpl

java.lang.Object
  上位を拡張 hudson.maven.MavenReporter
      上位を拡張 hudson.plugins.helpers.AbstractMavenReporterImpl
すべての実装されたインタフェース:
hudson.ExtensionPoint, hudson.maven.MavenProjectActionBuilder, hudson.model.Describable<hudson.maven.MavenReporter>, Serializable
直系の既知のサブクラス:
JavaNCSSMavenPublisher

public abstract class AbstractMavenReporterImpl
extends hudson.maven.MavenReporter

An abstract MavenReporter that is designed to work with a Ghostwriter.

導入されたバージョン:
28-Jan-2008 22:18:53
作成者:
Stephen Connolly
関連項目:
直列化された形式

入れ子のクラスの概要
protected static class AbstractMavenReporterImpl.MojoExecutionReportingMode
          The reporting mode.
 
インタフェース hudson.ExtensionPoint から継承された入れ子のクラス/インタフェース
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
コンストラクタの概要
AbstractMavenReporterImpl()
           
 
メソッドの概要
protected  boolean autoconfPom(hudson.maven.MavenBuildProxy build, org.apache.maven.project.MavenProject pom, hudson.maven.MojoInfo mojo, hudson.model.BuildListener listener)
          Called during the preExecute phase when isAutoconfMojo returns true.
protected  AbstractMavenReporterImpl.MojoExecutionReportingMode getExecutionMode()
          Returns the execution mode that this reporter will follow.
protected  boolean isAutoconfMojo(hudson.maven.MojoInfo mojo)
          Returns true if this mojo execution is an execution that we want to modify, i.e. where we want to "fix" some of the configuration details, e.g. enable XML reports, etc.
protected abstract  boolean isExecutingMojo(hudson.maven.MojoInfo mojo)
          Returns true if this is the mojo that corresponds with execution of the task we want to report on.
protected abstract  Ghostwriter newGhostwriter(org.apache.maven.project.MavenProject pom, hudson.maven.MojoInfo mojo)
          Creates the configured Ghostwriter based on the information from the pom and mojo.
 boolean postExecute(hudson.maven.MavenBuildProxy build, org.apache.maven.project.MavenProject pom, hudson.maven.MojoInfo mojo, hudson.model.BuildListener listener, Throwable error)
          
 boolean preExecute(hudson.maven.MavenBuildProxy build, org.apache.maven.project.MavenProject pom, hudson.maven.MojoInfo mojo, hudson.model.BuildListener listener)
          
 
クラス hudson.maven.MavenReporter から継承されたメソッド
end, enterModule, getAggregatedProjectAction, getDescriptor, getProjectAction, getProjectActions, leaveModule, postBuild, preBuild, reportGenerated
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

AbstractMavenReporterImpl

public AbstractMavenReporterImpl()
メソッドの詳細

getExecutionMode

protected AbstractMavenReporterImpl.MojoExecutionReportingMode getExecutionMode()
Returns the execution mode that this reporter will follow.

戻り値:
the execution mode that this reporter will follow.

postExecute

public boolean postExecute(hudson.maven.MavenBuildProxy build,
                           org.apache.maven.project.MavenProject pom,
                           hudson.maven.MojoInfo mojo,
                           hudson.model.BuildListener listener,
                           Throwable error)
                    throws InterruptedException,
                           IOException

オーバーライド:
クラス hudson.maven.MavenReporter 内の postExecute
例外:
InterruptedException
IOException

isExecutingMojo

protected abstract boolean isExecutingMojo(hudson.maven.MojoInfo mojo)
Returns true if this is the mojo that corresponds with execution of the task we want to report on.

パラメータ:
mojo - The mojo execution.
戻り値:
true if this is the mojo that corresponds with execution of the task we want to report on.

newGhostwriter

protected abstract Ghostwriter newGhostwriter(org.apache.maven.project.MavenProject pom,
                                              hudson.maven.MojoInfo mojo)
Creates the configured Ghostwriter based on the information from the pom and mojo. Will only be called when isExecutingMojo returns true.

パラメータ:
pom - The pom.
mojo - The mojo for which isExecutingMojo returned true.
戻り値:
The configured Ghostwriter instance.

preExecute

public boolean preExecute(hudson.maven.MavenBuildProxy build,
                          org.apache.maven.project.MavenProject pom,
                          hudson.maven.MojoInfo mojo,
                          hudson.model.BuildListener listener)
                   throws InterruptedException,
                          IOException

オーバーライド:
クラス hudson.maven.MavenReporter 内の preExecute
例外:
InterruptedException
IOException

autoconfPom

protected boolean autoconfPom(hudson.maven.MavenBuildProxy build,
                              org.apache.maven.project.MavenProject pom,
                              hudson.maven.MojoInfo mojo,
                              hudson.model.BuildListener listener)
Called during the preExecute phase when isAutoconfMojo returns true. if we want to tweak the mojo.configuration to ensure that the mojo is configured with the options we need here is the place to do that for example:

XmlPlexusConfiguration xmlOutputDir = (XmlPlexusConfiguration) mojo.configuration.getChild("xmlOutputDir"); if (xmlOutputDir == null) { xmlOutputDir = new XmlPlexusConfiguration("xmlOutputDir"); xmlOutputDir.setValue("${basedir}/target/xmlReport"); mojo.configuration.addChild(xmlOutputDir); }

パラメータ:
build - The build.
pom - The pom which will be manipulated by this method to autoconfigure.
mojo - The mojo.
listener - The build listener.
戻り値:
true if autoconf was successful.

isAutoconfMojo

protected boolean isAutoconfMojo(hudson.maven.MojoInfo mojo)
Returns true if this mojo execution is an execution that we want to modify, i.e. where we want to "fix" some of the configuration details, e.g. enable XML reports, etc.

パラメータ:
mojo - The mojo.
戻り値:
true if this mojo execution is an execution that we want to modify.


Copyright © 2004-2011. All Rights Reserved.