提交 e821515b 编写于 作者: K kohsuke

we need to go through the initialization method as some JobProperty uses this...

we need to go through the initialization method as some JobProperty uses this to initialize other things (for example, the batch-task plugin does this.)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14830 71c3de6d-444a-0410-be80-ed276b4c234a
上级 e334b330
......@@ -299,7 +299,7 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
* @since 1.188
*/
public void addProperty(JobProperty<? super JobT> jobProp) throws IOException {
((JobProperty)jobProp).owner = this;
((JobProperty)jobProp).setOwner(this);
properties.add(jobProp);
save();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册