/** * Indicates if at least one depender has a transitive dependency descriptor for the given root * module conf. * * @param rootModuleConf * the root module conf to consider * @return <code>true</code> if at least one depender has a transitive dependency descriptor for * the given root module conf, <code>false</code> otherwise. */ public boolean hasTransitiveDepender(String rootModuleConf) { Set/* <Depender> */dependersSet = (Set) dependers.get(rootModuleConf); if (dependersSet == null) { return false; } for (Iterator iterator = dependersSet.iterator(); iterator.hasNext();) { Depender depender = (Depender) iterator.next(); if (depender.dd.isTransitive()) { return true; } } return false; }
.getDynamicConstraintDependencyRevisionId()); DefaultDependencyDescriptor newdd = new DefaultDependencyDescriptor(null, transformMrid, transformDynamicMrid, dd.isForce(), dd.isChanging(), dd.isTransitive());
out.print(" changing=\"" + dep.isChanging() + "\""); if (!dep.isTransitive()) { out.print(" transitive=\"" + dep.isTransitive() + "\"");
/** * Returns true if the current dependency descriptor is transitive and the parent configuration * is transitive. Otherwise returns false. * * @return true if current node is transitive and the parent configuration is transitive. */ public boolean isTransitive() { if (node.isRoot()) { // the root node is always considered transitive! return true; } if (!data.isTransitive()) { return false; } if (!isParentConfTransitive()) { return false; } DependencyDescriptor dd = node.getDependencyDescriptor(getParentNode()); if ((dd != null) && dd.isTransitive()) { return true; } return node.hasAnyMergedUsageWithTransitiveDependency(rootModuleConf); }
printDependency(out, indent, mrid.getOrganisation(), mrid.getName(), mrid.getRevision(), type, classifier, scope, optional, dds[i].isTransitive(), excludes); boolean optional = mapping.isOptional(dds[i].getModuleConfigurations()); printDependency(out, indent, mrid.getOrganisation(), mrid.getName(), mrid.getRevision(), null, null, scope, optional, dds[i].isTransitive(), excludes);