1 package hudson.maven; 2 3 import hudson.ExtensionPoint; 4 import hudson.model.Action; 5 import hudson.model.BuildListener; 6 import hudson.model.Describable; 7 import hudson.model.Project; 8 import hudson.tasks.BuildStep; 9 import org.apache.maven.project.MavenProject; 10 11 import java.io.IOException ; 12 import java.io.Serializable ; 13 14 47 public abstract class MavenReporter implements Describable<MavenReporter>, ExtensionPoint, Serializable { 48 68 public boolean preBuild(MavenBuildProxy build, MavenProject pom, BuildListener listener) throws InterruptedException , IOException { 69 return true; 70 } 71 72 91 public boolean enterModule(MavenBuildProxy build, MavenProject pom, BuildListener listener) throws InterruptedException , IOException { 92 return true; 93 } 94 95 100 public boolean leaveModule(MavenBuildProxy build, MavenProject pom, BuildListener listener) throws InterruptedException , IOException { 101 return true; 102 } 103 104 114 public boolean preExecute(MavenBuildProxy build, MavenProject pom, MojoInfo mojo, BuildListener listener) throws InterruptedException , IOException { 115 return true; 116 } 117 118 123 public boolean postExecute(MavenBuildProxy build, MavenProject pom, MojoInfo mojo, BuildListener listener) throws InterruptedException , IOException { 124 return true; 125 } 126 127 137 public boolean postBuild(MavenBuildProxy build, MavenProject pom, BuildListener listener) throws InterruptedException , IOException { 138 return true; 139 } 140 141 145 public Action getProjectAction(MavenModule module) { 146 return null; 147 } 148 149 public abstract MavenReporterDescriptor getDescriptor(); 150 } 151 | Popular Tags |