提交 77b81532 编写于 作者: K kohsuke

promoted AbortException.

allow AbortException to be thrown from a listener.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2288 71c3de6d-444a-0410-be80-ed276b4c234a
上级 b2b2e55b
package hudson.maven.agent;
import org.apache.maven.plugin.PluginManagerException;
/**
* Thrown when {@link PluginManagerListener} returned false to orderly
* abort the execution. The caller shouldn't dump the stack trace for
* this exception.
*/
public final class AbortException extends PluginManagerException {
public AbortException(String message) {
super(message);
}
public AbortException(String message, Exception e) {
super(message, e);
}
}
......@@ -116,17 +116,4 @@ public class PluginManagerInterceptor extends DefaultPluginManager {
return dom;
}
/**
* Thrown when {@link PluginManagerListener} returned false to orderly
* abort the execution. The caller shouldn't dump the stack trace for
* this exception.
*/
public final class AbortException extends PluginManagerException {
public AbortException(String message) {
super(message);
}
public AbortException(String message, Exception e) {
super(message, e);
}
}
}
......@@ -13,6 +13,6 @@ import java.io.IOException;
* @author Kohsuke Kawaguchi
*/
public interface PluginManagerListener {
void preExecute(MavenProject project,MojoExecution exec, PlexusConfiguration mergedConfig, ExpressionEvaluator eval) throws IOException, InterruptedException;
void postExecute(MavenProject project,MojoExecution exec, PlexusConfiguration mergedConfig, ExpressionEvaluator eval) throws IOException, InterruptedException;
void preExecute(MavenProject project,MojoExecution exec, PlexusConfiguration mergedConfig, ExpressionEvaluator eval) throws IOException, InterruptedException, AbortException;
void postExecute(MavenProject project,MojoExecution exec, PlexusConfiguration mergedConfig, ExpressionEvaluator eval) throws IOException, InterruptedException, AbortException;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册