if (!isDescendantOf(affectedPaths, mod)) { LOGGER.log(Level.FINEST, "{0} are not a descendant of {1}", new Object[] {affectedPaths, mod}); continue;
if(isDescendantOf(e, mod)) { if(subsidiaries==null) subsidiaries = mod.getSubsidiaries();
/** * Does this change happen somewhere in the given module or its descendants? */ private boolean isDescendantOf(Collection<String> affectedPaths, MavenModule mod) { for (String path : affectedPaths) { if (isDescendantOf(path, mod)) return true; } return false; }
private boolean belongsToSubsidiary(List<MavenModule> subsidiaries, String path) { for (MavenModule sub : subsidiaries) if (isDescendantOf(path, sub)) return true; return false; }
private boolean notInSubsidiary(List<MavenModule> subsidiaries, Collection<String> affectedPaths) { for (String path : affectedPaths) if(isDescendantOf(path, mod) && !belongsToSubsidiary(subsidiaries, path)) return true; return false; }