本文整理了Java中org.apache.ivy.Ivy.configure()
方法的一些代码示例,展示了Ivy.configure()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ivy.configure()
方法的具体详情如下:
包路径:org.apache.ivy.Ivy
类名称:Ivy
方法名:configure
[英]Configures Ivy with 1.4 compatible default settings
[中]使用1.4兼容的默认设置配置常春藤
代码示例来源:origin: org.apache.ivy/ivy
public void configure(File settingsFile) throws ParseException, IOException {
ivy.configure(settingsFile);
}
代码示例来源:origin: org.jvnet.hudson.plugins/ivy
if (ivyConf != null) {
try {
ivy.configure(new File(ivyConf.getIvyConfPath()));
LOGGER.fine("Configured Ivy using the Ivy settings " + ivyConf.getName());
configured = ivy;
代码示例来源:origin: org.apache.ivy/ivy
private static IvySettings initSettings(CommandLine line, Ivy ivy)
throws java.text.ParseException, IOException, ParseException {
IvySettings settings = ivy.getSettings();
settings.addAllVariables(System.getProperties());
if (line.hasOption("m2compatible")) {
settings.setVariable("ivy.default.configuration.m2compatible", "true");
}
configureURLHandler(line.getOptionValue("realm", null), line.getOptionValue("host", null),
line.getOptionValue("username", null), line.getOptionValue("passwd", null));
String settingsPath = line.getOptionValue("settings", "");
if ("".equals(settingsPath)) {
settingsPath = line.getOptionValue("conf", "");
if (!"".equals(settingsPath)) {
Message.deprecated("-conf is deprecated, use -settings instead");
}
}
if ("".equals(settingsPath)) {
ivy.configureDefault();
} else {
File conffile = new File(settingsPath);
if (!conffile.exists()) {
error("ivy configuration file not found: " + conffile);
} else if (conffile.isDirectory()) {
error("ivy configuration file is not a file: " + conffile);
}
ivy.configure(conffile);
}
return settings;
}
代码示例来源:origin: org.apache.ivy/ivy
public void configure(URL settingsURL) throws ParseException, IOException {
ivy.configure(settingsURL);
}
代码示例来源:origin: org.apache.ivy/ivy
throw new BuildException("settings file does not exist: " + file);
ivy.configure(file);
} else {
if (url == null) {
+ " and if not defineDefaultSettingFile must set it.");
ivy.configure(url);
代码示例来源:origin: com.google.code.maven-play-plugin.org.playframework/play
File ivyDefaultSettings = new File(userHome, ".ivy2/ivysettings.xml");
if (ivyDefaultSettings != null && ivyDefaultSettings.exists()) {
ivy.configure(ivyDefaultSettings);
内容来源于网络,如有侵权,请联系作者删除!