提交 3445fe19 编写于 作者: K Kohsuke Kawaguchi

Not exactly sure if these are truly needed, but J-on-J otherwise fails with compilation error.

It's apparently failing to properly deduce the JobT type. Making it explicit to avoid stretching the compiler
上级 02f6e4f8
...@@ -1408,11 +1408,11 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run ...@@ -1408,11 +1408,11 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
*/ */
public abstract void cleanUp(BuildListener listener) throws Exception; public abstract void cleanUp(BuildListener listener) throws Exception;
public final RunT getBuild() { public RunT getBuild() {
return _this(); return _this();
} }
public final JobT getProject() { public JobT getProject() {
return _this().getParent(); return _this().getParent();
} }
} }
......
...@@ -644,6 +644,16 @@ public class MavenBuild extends AbstractMavenBuild<MavenModule,MavenBuild> { ...@@ -644,6 +644,16 @@ public class MavenBuild extends AbstractMavenBuild<MavenModule,MavenBuild> {
private class MavenBuildExecution extends AbstractBuildExecution { private class MavenBuildExecution extends AbstractBuildExecution {
private List<MavenReporter> reporters; private List<MavenReporter> reporters;
@Override
public MavenBuild getBuild() {
return (MavenBuild)super.getBuild();
}
@Override
public MavenModule getProject() {
return (MavenModule)super.getProject();
}
@Override @Override
protected Lease decideWorkspace(Node n, WorkspaceList wsl) throws InterruptedException, IOException { protected Lease decideWorkspace(Node n, WorkspaceList wsl) throws InterruptedException, IOException {
return wsl.allocate(getModuleSetBuild().getModuleRoot().child(getProject().getRelativePath())); return wsl.allocate(getModuleSetBuild().getModuleRoot().child(getProject().getRelativePath()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册