예제 #1
0
  /**
   * Possibly empty list of all disabled modules (if disabled==true) or all enabeld modules (if
   * disabled==false)
   */
  public List<MavenModule> getDisabledModules(boolean disabled) {
    if (!disabled && sortedActiveModules != null) return sortedActiveModules;

    List<MavenModule> r = new ArrayList<MavenModule>();
    for (MavenModule m : modules.values()) {
      if (m.isDisabled() == disabled) r.add(m);
    }
    return r;
  }
예제 #2
0
 /** Returns true if there's any disabled module. */
 public boolean hasDisabledModule() {
   for (MavenModule m : modules.values()) {
     if (m.isDisabled()) return true;
   }
   return false;
 }