本文整理了Java中org.apache.ivy.Ivy.retrieve()
方法的一些代码示例,展示了Ivy.retrieve()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ivy.retrieve()
方法的具体详情如下:
包路径:org.apache.ivy.Ivy
类名称: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,
内容来源于网络,如有侵权,请联系作者删除!