/** * 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; }
/** Returns true if there's any disabled module. */ public boolean hasDisabledModule() { for (MavenModule m : modules.values()) { if (m.isDisabled()) return true; } return false; }