提交 851a999c 编写于 作者: K Kohsuke Kawaguchi

not exposing the setBuiltOnStr to arbitrary external methods. It's really only...

not exposing the setBuiltOnStr to arbitrary external methods. It's really only for internal consumption.
上级 f8e92df4
......@@ -186,12 +186,13 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
}
/**
* Set the name of the slave that the build was performed on.
* @param builtOn
* Allows subtypes to set the value of {@link #builtOn}.
* This is used for those implementations where an {@link AbstractBuild} is made 'built' without
* actually running its {@link #run()} method.
*
* @since 1.429
*/
public void setBuiltOnStr( String builtOn )
{
protected void setBuiltOnStr( String builtOn ) {
this.builtOn = builtOn;
}
......
......@@ -286,6 +286,12 @@ public class MavenBuild extends AbstractMavenBuild<MavenModule,MavenBuild> {
return super.getParent();
}
// allow MavenModuleSetBuild to set this.
@Override
protected void setBuiltOnStr(String builtOn) {
super.setBuiltOnStr(builtOn);
}
/**
* Runs Maven and builds the project.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册