Example #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;
 }
Example #2
0
 public Maven.DescriptorImpl getMavenDescriptor() {
   return Hudson.getInstance().getDescriptorByType(Maven.DescriptorImpl.class);
 }
Example #3
0
 public Hudson getParent() {
   return Hudson.getInstance();
 }
Example #4
0
 public MavenModuleSet(String name) {
   super(Hudson.getInstance(), name);
 }