}
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),