hudson.maven.agent
Interface PluginManagerListener


public interface PluginManagerListener

Receives notification from PluginManagerInterceptor, before and after a mojo is executed.

Author:
Kohsuke Kawaguchi

Method Summary
 void postExecute(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.MojoExecution exec, org.codehaus.plexus.configuration.PlexusConfiguration mergedConfig, org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator eval, java.lang.Exception exception)
          Called after the mojo has finished executing.
 void preExecute(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.MojoExecution exec, org.codehaus.plexus.configuration.PlexusConfiguration mergedConfig, org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator eval)
           
 

Method Detail

preExecute

void preExecute(org.apache.maven.project.MavenProject project,
                org.apache.maven.plugin.MojoExecution exec,
                org.codehaus.plexus.configuration.PlexusConfiguration mergedConfig,
                org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator eval)
                throws java.io.IOException,
                       java.lang.InterruptedException,
                       AbortException
Throws:
java.io.IOException
java.lang.InterruptedException
AbortException

postExecute

void postExecute(org.apache.maven.project.MavenProject project,
                 org.apache.maven.plugin.MojoExecution exec,
                 org.codehaus.plexus.configuration.PlexusConfiguration mergedConfig,
                 org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator eval,
                 java.lang.Exception exception)
                 throws java.io.IOException,
                        java.lang.InterruptedException,
                        AbortException
Called after the mojo has finished executing.

Parameters:
project - Same object as passed to preExecute(org.apache.maven.project.MavenProject, org.apache.maven.plugin.MojoExecution, org.codehaus.plexus.configuration.PlexusConfiguration, org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator).
exec - Same object as passed to preExecute(org.apache.maven.project.MavenProject, org.apache.maven.plugin.MojoExecution, org.codehaus.plexus.configuration.PlexusConfiguration, org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator).
mergedConfig - Same object as passed to preExecute(org.apache.maven.project.MavenProject, org.apache.maven.plugin.MojoExecution, org.codehaus.plexus.configuration.PlexusConfiguration, org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator).
eval - Same object as passed to preExecute(org.apache.maven.project.MavenProject, org.apache.maven.plugin.MojoExecution, org.codehaus.plexus.configuration.PlexusConfiguration, org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator).
exception - 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:
java.io.IOException
java.lang.InterruptedException
AbortException


Copyright © 2007. All Rights Reserved.