org.apache.ivy.Ivy.retrieve()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(110)

本文整理了Java中org.apache.ivy.Ivy.retrieve()方法的一些代码示例,展示了Ivy.retrieve()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ivy.retrieve()方法的具体详情如下:
包路径:org.apache.ivy.Ivy
类名称:Ivy
方法名:retrieve

Ivy.retrieve介绍

暂无

代码示例

代码示例来源:origin: org.apache.ivy/ivy

public int retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern) {
  try {
    return ivy.retrieve(new ModuleRevisionId(moduleId, Ivy.getWorkingRevision()),
      destFilePattern, new RetrieveOptions().setConfs(confs));
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
}

代码示例来源:origin: org.apache.ivy/ivy

public int retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern,
    String destIvyPattern) {
  try {
    return ivy.retrieve(new ModuleRevisionId(moduleId, Ivy.getWorkingRevision()),
      destFilePattern,
      new RetrieveOptions().setConfs(confs).setDestIvyPattern(destIvyPattern));
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
}

代码示例来源:origin: org.apache.ivy/ivy

public int retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern,
    String destIvyPattern, Filter artifactFilter) {
  try {
    return ivy.retrieve(new ModuleRevisionId(moduleId, Ivy.getWorkingRevision()),
      destFilePattern,
      new RetrieveOptions().setConfs(confs).setDestIvyPattern(destIvyPattern)
          .setArtifactFilter(artifactFilter));
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
}

代码示例来源:origin: org.apache.ivy/ivy

public int retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern,
    String destIvyPattern, Filter artifactFilter, boolean sync, boolean useOrigin) {
  try {
    return ivy.retrieve(new ModuleRevisionId(moduleId, Ivy.getWorkingRevision()),
      destFilePattern,
      new RetrieveOptions().setConfs(confs).setDestIvyPattern(destIvyPattern)
          .setArtifactFilter(artifactFilter).setSync(sync).setUseOrigin(useOrigin));
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
}

代码示例来源:origin: io.restx/restx-core-shell

private void installDepsFromIvyDescriptor(RestxShell shell, File ivyFile) throws Exception {
  Ivy ivy = ShellIvy.loadIvy(shell);
  shell.println("resolving dependencies...");
  ResolveReport resolveReport = ivy.resolve(ivyFile);
  shell.println("synchronizing dependencies in " + shell.currentLocation().resolve("target/dependency") + " ...");
  ivy.retrieve(resolveReport.getModuleDescriptor().getModuleRevisionId(),
      new RetrieveOptions()
          .setDestArtifactPattern(
              shell.currentLocation().toAbsolutePath() + "/target/dependency/[artifact]-[revision](-[classifier]).[ext]")
          .setSync(true)
  );
}

代码示例来源:origin: org.apache.ivy/ivy

public int retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern,
    String destIvyPattern, Filter artifactFilter, boolean sync, boolean useOrigin,
    boolean makeSymlinks) {
  try {
    return ivy.retrieve(new ModuleRevisionId(moduleId, Ivy.getWorkingRevision()),
      destFilePattern,
      new RetrieveOptions().setConfs(confs).setDestIvyPattern(destIvyPattern)
          .setArtifactFilter(artifactFilter).setSync(sync).setUseOrigin(useOrigin)
          .setMakeSymlinks(makeSymlinks));
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
}

代码示例来源:origin: stackoverflow.com

ivy.retrieve(
  m.getModuleRevisionId(),
  out.getAbsolutePath()+"/[artifact](-[classifier]).[ext]",

代码示例来源:origin: org.apache.ivy/ivy

try {
  Filter artifactFilter = getArtifactFilter();
  RetrieveReport report = getIvyInstance().retrieve(
    getResolvedMrid(),
    ((RetrieveOptions) new RetrieveOptions().setLog(getLog()))

代码示例来源:origin: org.apache.ivy/ivy

ivy.retrieve(
  md.getModuleRevisionId(),
  retrievePattern,

相关文章