if (!ivySettingsFile.startsWith("http://")
&& !ivySettingsFile.startsWith("https://")
&& !ivySettingsFile.startsWith("file://")) {
File result = new File(ivySettingsFile);
if (!result.exists()) {
throw new IvySettingsNotFoundException("The ivy settings file given in the module settings for module " + module.getName() + " does not exist: " + result.getAbsolutePath(), IvySettingsNotFoundException.ConfigLocation.Module, module.getName());
}
if (result.isDirectory()) {
throw new IvySettingsNotFoundException("The ivy settings file given in the module settings for module " + module.getName() + " is a directory: " + result.getAbsolutePath(), IvySettingsNotFoundException.ConfigLocation.Module, module.getName());
}
}
return ivySettingsFile;
} else {
throw new IvySettingsNotFoundException("No ivy settings file given in the settings of module " + module.getName(), IvySettingsNotFoundException.ConfigLocation.Module, module.getName());
}
} else {
return null; // use ivy standard
}
}