Search in sources :

Example 1 with SubTaskContributor

use of hudson.model.queue.SubTaskContributor in project hudson-2.x by hudson.

the class AbstractProject method getSubTasks.

public List<SubTask> getSubTasks() {
    List<SubTask> r = new ArrayList<SubTask>();
    r.add(this);
    for (SubTaskContributor euc : SubTaskContributor.all()) r.addAll(euc.forProject(this));
    for (JobProperty<? super P> p : getAllProperties()) r.addAll(p.getSubTasks());
    return r;
}
Also used : ArrayList(java.util.ArrayList) SubTaskContributor(hudson.model.queue.SubTaskContributor) SubTask(hudson.model.queue.SubTask)

Aggregations

SubTask (hudson.model.queue.SubTask)1 SubTaskContributor (hudson.model.queue.SubTaskContributor)1 ArrayList (java.util.ArrayList)1