|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.maven.MavenReporter
hudson.maven.reporters.AbstractMavenJavadocArchiver
public abstract class AbstractMavenJavadocArchiver
Records the javadoc and archives it.
Nested Class Summary | |
---|---|
protected static class |
AbstractMavenJavadocArchiver.MavenJavadocAction
|
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
Constructor Summary | |
---|---|
AbstractMavenJavadocArchiver()
|
Method Summary | |
---|---|
abstract boolean |
checkIsJavadocMojo(MojoInfo mojo)
return true if this mojo is a javadoc one sources or test sources |
abstract Action |
getAggregatedProjectAction(MavenModuleSet project)
Works like MavenReporter.getProjectAction(MavenModule) but
works at MavenModuleSet level. |
abstract String |
getArchiveTargetPath()
|
abstract Collection<? extends Action> |
getProjectActions(MavenModule project)
Equivalent of BuildStep.getProjectActions(AbstractProject)
for MavenReporter . |
FilePath |
getTarget()
|
boolean |
postExecute(MavenBuildProxy build,
org.apache.maven.project.MavenProject pom,
MojoInfo mojo,
BuildListener listener,
Throwable error)
Called after execution of a single mojo. |
boolean |
reportGenerated(MavenBuildProxy build,
org.apache.maven.project.MavenProject pom,
MavenReportInfo report,
BuildListener listener)
Called after a MavenReport is successfully generated. |
Methods inherited from class hudson.maven.MavenReporter |
---|
end, enterModule, getDescriptor, getProjectAction, leaveModule, postBuild, preBuild, preExecute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractMavenJavadocArchiver()
Method Detail |
---|
public abstract boolean checkIsJavadocMojo(MojoInfo mojo)
mojo
-
public abstract String getArchiveTargetPath()
public boolean postExecute(MavenBuildProxy build, org.apache.maven.project.MavenProject pom, MojoInfo mojo, BuildListener listener, Throwable error) throws InterruptedException, IOException
MavenReporter
See MavenReporter.preExecute(hudson.maven.MavenBuildProxy, org.apache.maven.project.MavenProject, hudson.maven.MojoInfo, hudson.model.BuildListener)
for the contract.
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.
InterruptedException
IOException
public boolean reportGenerated(MavenBuildProxy build, org.apache.maven.project.MavenProject pom, MavenReportInfo report, BuildListener listener) throws InterruptedException, IOException
MavenReporter
MavenReport
is successfully generated.
MavenReport
is an execution unit inside the Maven site plugin mojos,
such as site:generate. These are what's configured through
<reporting> tag inside POM, although there's normally more
MavenReport
s than what's specified explicitly, due to defaulting
and inheritance and all the other Maven processing.
This provides an opportunity for plugins to auto-perform some action when a certain reporting is generated.
This method is invoked during the execution of site mojos, between its
MavenReporter.preExecute(MavenBuildProxy, MavenProject, MojoInfo, BuildListener)
and MavenReporter.postExecute(MavenBuildProxy, MavenProject, MojoInfo, BuildListener, Throwable)
reportGenerated
in class MavenReporter
MavenReporter.preBuild(hudson.maven.MavenBuildProxy, org.apache.maven.project.MavenProject, hudson.model.BuildListener)
InterruptedException
- See MavenReporter.preBuild(hudson.maven.MavenBuildProxy, org.apache.maven.project.MavenProject, hudson.model.BuildListener)
IOException
- See MavenReporter.preBuild(hudson.maven.MavenBuildProxy, org.apache.maven.project.MavenProject, hudson.model.BuildListener)
public abstract Collection<? extends Action> getProjectActions(MavenModule project)
MavenReporter
BuildStep.getProjectActions(AbstractProject)
for MavenReporter
.
Registers a transient action to MavenModule
when it's rendered.
This is useful if you'd like to display an action at the module level.
Since this contributes a transient action, the returned Action
will not be serialized.
For this method to be invoked, your MavenReporter
has to invoke
MavenBuildProxy.registerAsProjectAction(MavenReporter)
during the build.
getProjectActions
in interface MavenProjectActionBuilder
getProjectActions
in class MavenReporter
public abstract Action getAggregatedProjectAction(MavenModuleSet project)
MavenReporter
MavenReporter.getProjectAction(MavenModule)
but
works at MavenModuleSet
level.
For this method to be invoked, your MavenReporter
has to invoke
MavenBuildProxy.registerAsAggregatedProjectAction(MavenReporter)
during the build.
getAggregatedProjectAction
in class MavenReporter
public FilePath getTarget()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |