use of org.graalvm.component.installer.ComponentCollection in project graal by oracle.
the class RemoteCatalogDownloaderTest method testMultipleCatalogsJoined.
/**
* Checks that multiple catalogs are merged together.
*/
@Test
public void testMultipleCatalogsJoined() throws Exception {
setupJoinedCatalog("catalogMultiPart1Mergeable.properties");
ComponentCollection col = openCatalog(rcd);
assertNotNull(findComponent(col, "r"));
assertNotNull(findComponent(col, "ruby"));
assertNotNull(findComponent(col, "python"));
}
use of org.graalvm.component.installer.ComponentCollection in project graal by oracle.
the class UpgradeCommand method initUpgradeOptions.
protected void initUpgradeOptions() {
ComponentCollection coll = input.getRegistry();
coll.setAllowDistUpdate(allowDistUpgrades());
if (input.optValue(Commands.OPTION_IGNORE_MISSING_COMPONENTS) != null) {
helper.setAllowMissing(true);
}
if (input.optValue(Commands.OPTION_NO_VERIFY_JARS) != null) {
verifyJars = false;
}
String ed = input.optValue(Commands.OPTION_USE_EDITION);
if (ed != null) {
helper.setEditionUpgrade(ed);
}
}
Aggregations