if ("file".equals(uri.getScheme())) {
File file = new File(uri);
if (file.isDirectory()) {
return new LocalBootInstall(file, name);
} else {
return new ZippedBootInstall(downloader, url, name);
}
} else {
String path = uri.getPath();
if (path.toLowerCase().endsWith(".zip")) {
return new ZippedBootInstall(downloader, url, name);
} else {
return new GenericBootInstall(url, null, "Not a zip url: "+url);
}
}
} catch (Exception e) {