本文整理了Java中org.apache.ivy.Ivy.newInstance()
方法的一些代码示例,展示了Ivy.newInstance()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ivy.newInstance()
方法的具体详情如下:
包路径:org.apache.ivy.Ivy
类名称:Ivy
方法名:newInstance
暂无
代码示例来源:origin: vipshop/Saturn
public IvyGetArtifact getIvyGetArtifact() throws ParseException, IOException {
File cacheDirectory = new File(ivyCache);// ivy下包缓存目录
if (!cacheDirectory.exists()) {
cacheDirectory.mkdirs();
}
URL settingsURL = MavenProjectUtils.class.getClassLoader().getResource("ivysettings.xml");
Ivy ivy = Ivy.newInstance();
ivy.getSettings().setDefaultCache(cacheDirectory);
ivy.getSettings().setVariable("ivy.local.default.root", localRepository);
ivy.getSettings().load(settingsURL);
return new IvyGetArtifact(logger, ivy);
}
代码示例来源:origin: org.apache.ivy/ivy
public Ivy14() {
this(Ivy.newInstance());
}
代码示例来源:origin: com.netflix.spinnaker.clouddriver/clouddriver-artifacts
public Ivy toIvy(Path cache) {
return Ivy.newInstance(toIvySettings(cache));
}
代码示例来源:origin: org.apache.ivy/ivy
private Ivy getDefaultIvy() {
if (defaultIvy == null) {
defaultIvy = Ivy.newInstance();
try {
defaultIvy.configureDefault();
} catch (Exception e) {
Message.debug(e);
// ???
}
}
return defaultIvy;
}
代码示例来源:origin: org.apache.geronimo.gshell.support/gshell-artifact-ivy
public Object getObject() throws Exception {
IvySettings settings = new IvySettings();
URL url = getSettingsUrl();
log.debug("Settings URL: {}", url);
settings.load(url);
//
// TODO: Need to hook up a TransferListener to show progress, not really sure how to do that with Ivy...
//
settings.setVariable("ivy.default.configuration.m2compatible", "true");
Ivy ivy = Ivy.newInstance(settings);
log.debug("Ivy: {}", ivy);
return ivy;
}
代码示例来源:origin: net.sourceforge.scenarlang/UT_DSL_JAVA_UTL
public static void resolveDependencies() throws ParseException, IOException {
Ivy ivy = Ivy.newInstance(getIvySettings());
File dependencyFile = getIvyDependencyFile();
// resolve the dependencies - Ivy returns a report of the resolution
ResolveReport resolveReport = ivy.resolve(dependencyFile);
// check for errors (if any) during resolve
if (resolveReport.hasError()) {
System.err.println(getErrorString(resolveReport));
} else {
System.out.println("Dependencies in file " + dependencyFile + " were successfully resolved");
}
}
代码示例来源:origin: org.jenkins-ci.plugins/ivytrigger
ivySettings.setDefaultCache(getAndInitCacheDir(launchDir));
Ivy ivy = Ivy.newInstance(ivySettings);
ivy.getLoggerEngine().pushLogger(new IvyTriggerResolverLog(log, debug));
for (Map.Entry<String, String> entry : variables.entrySet()) {
代码示例来源:origin: org.hudsonci.plugins/ivy
ivySettings.setDefaultBranch(ivyBranch);
return Ivy.newInstance(ivySettings);
} catch (Exception e) {
logger.println("Error while reading the default Ivy 2.1 settings: " + e.getMessage());
代码示例来源:origin: org.jenkins-ci.plugins/ivy
ivySettings.setDefaultBranch(ivyBranch);
return Ivy.newInstance(ivySettings);
} catch (Exception e) {
logger.println("Error while reading the default Ivy 2.1 settings: " + e.getMessage());
代码示例来源:origin: org.jvnet.hudson.plugins/ivy
ivySettings.setDefaultBranch(ivyBranch);
return Ivy.newInstance(ivySettings);
} catch (Exception e) {
logger.println("Error while reading the default Ivy 2.1 settings: " + e.getMessage());
代码示例来源:origin: org.jenkins-ci.plugins/ivy
LOGGER.log(Level.INFO,"Configured Ivy using default 2.1 settings");
return Ivy.newInstance(ivySettings);
代码示例来源:origin: org.hudsonci.plugins/ivy
LOGGER.log(Level.INFO,"Configured Ivy using default 2.1 settings");
return Ivy.newInstance(ivySettings);
代码示例来源:origin: org.walkmod/walkmod-core
ivy = Ivy.newInstance(ivySettings);
代码示例来源:origin: walkmod/walkmod-core
ivy = Ivy.newInstance(ivySettings);
代码示例来源:origin: org.jvnet.hudson.plugins/ivy
Message.setDefaultLogger(new IvyMessageImpl());
IvyConfiguration ivyConf = getIvyConfiguration();
Ivy ivy = Ivy.newInstance();
Ivy configured = null;
if (ivyConf != null) {
代码示例来源:origin: dkpro/dkpro-core
Ivy ivy = Ivy.newInstance(ivySettings);
代码示例来源:origin: org.apache.ivy/ivy
Ivy ivy = Ivy.newInstance(settings);
try {
ivy.pushContext();
代码示例来源:origin: com.google.code.maven-play-plugin.org.playframework/play
ivySettings.setDefaultConflictManager(conflictManager);
Ivy ivy = Ivy.newInstance(ivySettings);
代码示例来源:origin: fizzed/blaze
Ivy ivy = Ivy.newInstance();
IvySettings ivySettings = ivy.getSettings();
代码示例来源:origin: kasonyang/kalang
Ivy ivy = Ivy.newInstance(settings);
ResolveOptions ops = new ResolveOptions();
内容来源于网络,如有侵权,请联系作者删除!