use of org.apache.ivy.core.settings.IvySettings in project gradle by gradle.
the class DefaultIvyContextManager method getIvy.
private Ivy getIvy() {
lock.lock();
try {
if (!cached.isEmpty()) {
return cached.removeFirst();
}
if (!messageAdapterAttached) {
Message.setDefaultLogger(new IvyLoggingAdaper());
messageAdapterAttached = true;
}
} finally {
lock.unlock();
}
return Ivy.newInstance(new IvySettings());
}
use of org.apache.ivy.core.settings.IvySettings in project lucene-solr by apache.
the class LibVersionsCheckTask method setupIvy.
private void setupIvy() {
IvySettings ivySettings = new IvySettings();
try {
ivySettings.setVariable("common.build.dir", commonBuildDir.getAbsolutePath());
ivySettings.setVariable("ivy.exclude.types", "source|javadoc");
ivySettings.setVariable("ivy.resolution-cache.dir", ivyResolutionCacheDir.getAbsolutePath());
ivySettings.setVariable("ivy.lock-strategy", ivyLockStrategy);
// nested settings file
ivySettings.setVariable("ivysettings.xml", getProject().getProperty("ivysettings.xml"));
ivySettings.setBaseDir(commonBuildDir);
ivySettings.setDefaultConflictManager(new NoConflictManager());
ivy = Ivy.newInstance(ivySettings);
ivy.configure(topLevelIvySettingsFile);
} catch (Exception e) {
throw new BuildException("Exception reading " + topLevelIvySettingsFile.getPath() + ": " + e.toString(), e);
}
}
Aggregations