.saveContent(manifestPath)
.asJson(ReleaseManifest.class);
// If the JAR does not exist, install it
if (!jarPath.exists()) {
installer.copyTo(new HttpResource(manifest.getJarUrl()), jarPath);
}
// Install all the missing libraries
for (Library library : manifest.getLibraries()) {
if (library.matches(environment)) {
URL url = library.getUrl(environment);
File file = new File(librariesDir, library.getPath(environment));
if (!file.exists()) {
installer.copyTo(new HttpResource(url), file);
}
checkInterrupted();
}
}