[HUDSON-2736] Application of patch submitted by riksmith.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19614 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
abayer committed 2009-07-11 15:24:42 +00:00
1 parent f0ce8118bf
commit 28e3adf4d0
8 files changed
+244 -113

No files matched your search

@@ -29,6 +29,7 @@ import hudson.Launcher;
import hudson.Util;
import hudson.EnvVars;
import hudson.FilePath.FileCallable;
import hudson.matrix.MatrixConfiguration;
import hudson.maven.MavenBuild.ProxyImpl2;
import hudson.maven.reporters.MavenFingerprinter;
import hudson.model.AbstractBuild;
@@ -97,7 +98,7 @@ import org.kohsuke.stapler.StaplerResponse;
*
* @author Kohsuke Kawaguchi
*/
public final class MavenModuleSetBuild extends AbstractBuild<MavenModuleSet,MavenModuleSetBuild> {
public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,MavenModuleSetBuild> {
/**
* {@link MavenReporter}s that will contribute project actions.
* Can be null if there's none.
@@ -526,10 +527,7 @@ public final class MavenModuleSetBuild extends AbstractBuild<MavenModuleSet,Mave
// schedule downstream builds. for non aggregator style builds,
// this is done by each module
if(getResult().isBetterOrEqualTo(Result.SUCCESS)) {
for(AbstractProject down : getProject().getDownstreamProjects()) {
listener.getLogger().println(Messages.MavenBuild_Triggering(down.getName()));
down.scheduleBuild(new UpstreamCause(MavenModuleSetBuild.this));
}
scheduleDownstreamBuilds(listener);
}
}
@@ -789,4 +787,9 @@ public final class MavenModuleSetBuild extends AbstractBuild<MavenModuleSet,Mave
* Extra versbose debug switch.
*/
public static boolean debug = false;
@Override
public MavenModuleSet getParent() {// don't know why, but javac wants this
return super.getParent();
}
}