提交 65c659d0 编写于 作者: K Kohsuke Kawaguchi

Removed pointless private methods.

上级 5a51361c
......@@ -273,7 +273,7 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
public final FilePath getModuleRoot() {
FilePath ws = getWorkspace();
if (ws==null) return null;
return getParent().getScm().getModuleRoot(ws, this);
return getParent().getScm().getModuleRoot(ws,this);
}
/**
......@@ -481,8 +481,9 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
for (WorkspaceListener wl : WorkspaceListener.all()) {
wl.beforeUse(AbstractBuild.this, lease.path, listener);
}
preCheckout();
checkout();
getProject().getSCMCheckoutStrategy().preCheckout(AbstractBuild.this, launcher, this.listener);
getProject().getSCMCheckoutStrategy().checkout(this);
if (!preBuild(listener,project.getProperties()))
return Result.FAILURE;
......@@ -566,18 +567,6 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
return l;
}
/**
* Run preCheckout on {@link BuildWrapper}s
*/
private void preCheckout() throws IOException, InterruptedException{
getProject().getSCMCheckoutStrategy().preCheckout(AbstractBuild.this, launcher, listener);
}
private void checkout() throws IOException, InterruptedException {
getProject().getSCMCheckoutStrategy().checkout(this);
}
public void defaultCheckout() throws IOException, InterruptedException {
AbstractBuild<?,?> build = AbstractBuild.this;
AbstractProject<?, ?> project = build.getProject();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册