本文整理了Java中org.apache.ivy.Ivy.getResolveEngine()
方法的一些代码示例,展示了Ivy.getResolveEngine()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ivy.getResolveEngine()
方法的具体详情如下:
包路径:org.apache.ivy.Ivy
类名称:Ivy
方法名:getResolveEngine
暂无
代码示例来源:origin: org.apache.ivy/ivy
public IvyNode[] getDependencies(URL ivySource, String[] confs, File cache, Date date,
boolean validate) throws ParseException, IOException {
return ivy.getResolveEngine().getDependencies(
ivySource,
newResolveOptions(confs, null, cache, date, validate, false, true, false, true, true,
FilterHelper.NO_FILTER));
}
代码示例来源:origin: org.apache.ivy/ivy
public IvyNode[] getDependencies(ModuleDescriptor md, String[] confs, File cache, Date date,
ResolveReport report, boolean validate) {
return ivy.getResolveEngine().getDependencies(
md,
newResolveOptions(confs, null, cache, date, validate, false, true, false, true, true,
FilterHelper.NO_FILTER), report);
}
代码示例来源:origin: org.apache.ivy/ivy
public IvyNode[] getDependencies(ModuleDescriptor md, String[] confs, File cache, Date date,
ResolveReport report, boolean validate, boolean transitive) {
return ivy.getResolveEngine().getDependencies(
md,
newResolveOptions(confs, null, cache, date, validate, false, transitive, false, true,
true, FilterHelper.NO_FILTER), report);
}
代码示例来源:origin: org.apache.ivy/ivy
public ResolvedModuleRevision findModule(ModuleRevisionId id) {
ResolveOptions options = new ResolveOptions();
options.setValidate(false);
return ivy.getResolveEngine().findModule(id, options);
}
代码示例来源:origin: org.apache.ivy/ivy
public ArtifactDownloadReport download(Artifact artifact, File cache, boolean useOrigin) {
Message.deprecated("using cache and useOrigin when calling download is not supported anymore");
return ivy.getResolveEngine().download(artifact, new DownloadOptions());
}
代码示例来源:origin: com.google.code.maven-play-plugin.org.playframework/play
ResolveEngine resolveEngine = ivy.getResolveEngine();
ResolveOptions resolveOptions = new ResolveOptions();
resolveOptions.setConfs(new String[] { "default" });
代码示例来源:origin: org.apache.ivy/ivy
md = (ModuleDescriptor) getResolvedDescriptor(getOrganisation(), getModule(), false);
IvyNode[] dependencies = getIvyInstance().getResolveEngine().getDependencies(
md,
((ResolveOptions) new ResolveOptions().setLog(getLog())).setConfs(confs)
代码示例来源:origin: org.apache.ivy/ivy
private ResolvedModuleRevision parseOtherPom(ParserSettings ivySettings,
ModuleRevisionId parentModRevID) throws ParseException {
DependencyDescriptor dd = new DefaultDependencyDescriptor(parentModRevID, true);
ResolveData data = IvyContext.getContext().getResolveData();
if (data == null) {
ResolveEngine engine = IvyContext.getContext().getIvy().getResolveEngine();
ResolveOptions options = new ResolveOptions();
options.setDownload(false);
data = new ResolveData(engine, options);
}
DependencyResolver resolver = ivySettings.getResolver(parentModRevID);
if (resolver == null) {
// TODO: Throw exception here?
return null;
} else {
dd = NameSpaceHelper.toSystem(dd, ivySettings.getContextNamespace());
ResolvedModuleRevision otherModule = resolver.getDependency(dd, data);
return otherModule;
}
}
代码示例来源:origin: org.apache.ivy/ivy
/**
* Describe how to parse a {@link ModuleDescriptor} by asking repositories
*
* @param parentMrid
* a given {@link ModuleRevisionId} to find
* @return a {@link ModuleDescriptor} if found. Return null if no {@link ModuleDescriptor}
* was found
* @throws ParseException
*/
protected ModuleDescriptor parseOtherIvyFile(ModuleRevisionId parentMrid)
throws ParseException {
Message.debug("Trying to parse included ivy file by asking repository for module :"
+ parentMrid.toString());
DependencyDescriptor dd = new DefaultDependencyDescriptor(parentMrid, true);
ResolveData data = IvyContext.getContext().getResolveData();
if (data == null) {
ResolveEngine engine = IvyContext.getContext().getIvy().getResolveEngine();
ResolveOptions options = new ResolveOptions();
options.setDownload(false);
data = new ResolveData(engine, options);
}
DependencyResolver resolver = getSettings().getResolver(parentMrid);
dd = NameSpaceHelper.toSystem(dd, getSettings().getContextNamespace());
ResolvedModuleRevision otherModule = resolver.getDependency(dd, data);
if (otherModule == null) {
throw new ParseException("Unable to find " + parentMrid.toString(), 0);
}
return otherModule.getDescriptor();
}
代码示例来源:origin: org.apache.ivy/ivy
latestReport = getIvyInstance().getResolveEngine().resolve(latestModuleDescriptor,
resolveOptions);
内容来源于网络,如有侵权,请联系作者删除!