private String[] getConfs(ModuleRevisionId mrid, RetrieveOptions options) throws IOException { String[] confs = options.getConfs(); if (confs == null || (confs.length == 1 && "*".equals(confs[0]))) { try { ModuleDescriptor md = getCache().getResolvedModuleDescriptor(mrid); Message.verbose("no explicit confs given for retrieve, using ivy file: " + md.getResource().getName()); confs = md.getConfigurationsNames(); options.setConfs(confs); } catch (IOException e) { throw e; } catch (Exception e) { IOException ioex = new IOException(e.getMessage()); ioex.initCause(e); throw ioex; } } return confs; }
opts = opts.setResolvedBranches(resolvedBranches); Resource res = md.getResource(); XmlModuleDescriptorUpdater.update(res.openStream(), res, publishedIvy, opts); } catch (SAXException ex) {
return md; DefaultModuleDescriptor nmd = new DefaultModuleDescriptor(md.getParser(), md.getResource()); nmd.revId = t.transform(md.getModuleRevisionId()); nmd.resolvedRevId = t.transform(md.getResolvedModuleRevisionId()); ModuleDescriptor parentMd = ed[i].getParentMd(); DefaultModuleDescriptor parentNmd = new DefaultModuleDescriptor(parentMd.getParser(), parentMd.getResource()); parentNmd.revId = t.transform(parentMd.getModuleRevisionId()); parentNmd.resolvedRevId = t.transform(parentMd.getResolvedModuleRevisionId());