示例#1
0
 /** Returns the {@link MavenModule}s that are in the queue. */
 public List<Queue.Item> getQueueItems() {
   List<Queue.Item> r = new ArrayList<hudson.model.Queue.Item>();
   for (Queue.Item item : Hudson.getInstance().getQueue().getItems()) {
     Task t = item.task;
     if ((t instanceof MavenModule && ((MavenModule) t).getParent() == this) || t == this)
       r.add(item);
   }
   return r;
 }
示例#2
0
 public Maven.DescriptorImpl getMavenDescriptor() {
   return Hudson.getInstance().getDescriptorByType(Maven.DescriptorImpl.class);
 }
示例#3
0
 public Hudson getParent() {
   return Hudson.getInstance();
 }
示例#4
0
 public MavenModuleSet(String name) {
   super(Hudson.getInstance(), name);
 }