private static DependencyDescriptor[] getDependencies(ModuleDescriptor md, PomWriterOptions options) { String[] confs = ConfigurationUtils.replaceWildcards(options.getConfs(), md); List result = new ArrayList(); DependencyDescriptor[] dds = md.getDependencies(); for (int i = 0; i < dds.length; i++) { String[] depConfs = dds[i].getDependencyConfigurations(confs); if ((depConfs != null) && (depConfs.length > 0)) { result.add(dds[i]); } } return (DependencyDescriptor[]) result.toArray(new DependencyDescriptor[result.size()]); }
for (int j = 0; j < modConfs.length; j++) { String[] depConfs = getDefaultConfMappingDescriptor() .getDependencyConfigurations(modConfs[j]); if (depConfs.length > 0) { for (int k = 0; k < depConfs.length; k++) {
for (int i = 0; i < moduleConfs.length; i++) { newdd.confs.put(moduleConfs[i], new ArrayList(Arrays.asList(dd.getDependencyConfigurations(moduleConfs[i])))); newdd.getExcludeRules().put(moduleConfs[i], new ArrayList(Arrays.asList(dd.getExcludeRules(moduleConfs[i]))));
String[] depConfs = deps[i].getDependencyConfigurations(conf); for (String extendedConf : extendedConfs) { if (resolvedConfs.contains(extendedConf)) {
String[] dependencyConfigurations = dd.getDependencyConfigurations(conf, requestedConf); if (dependencyConfigurations.length == 0) {
String[] modConfs = dep.getModuleConfigurations(); for (int j = 0; j < modConfs.length; j++) { String[] depConfs = dep.getDependencyConfigurations(modConfs[j]); out.print(XMLHelper.escape(modConfs[j]) + "->"); for (int k = 0; k < depConfs.length; k++) {
result = false; } else { String[] depConfs = dds[i].getDependencyConfigurations(md .getConfigurationsNames()); for (int j = 0; j < depConfs.length; j++) {