提交 e9d491a8 编写于 作者: K kohsuke

added a method to remove a JobProperty

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14766 71c3de6d-444a-0410-be80-ed276b4c234a
上级 5e77eaae
......@@ -298,13 +298,22 @@ 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 {
public void addProperty(JobProperty<? super JobT> jobProp) throws IOException {
((JobProperty)jobProp).owner = this;
properties.add(jobProp);
save();
}
/**
* Removes {@link JobProperty}
*
* @since 1.279
*/
public void removeProperty(JobProperty<? super JobT> jobProp) throws IOException {
properties.remove(jobProp);
save();
}
/**
* Gets all the job properties configured for this job.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册