Search in sources :

Example 1 with ComponentCollection

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"));
}
Also used : ComponentCollection(org.graalvm.component.installer.ComponentCollection) Test(org.junit.Test)

Example 2 with ComponentCollection

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);
    }
}
Also used : ComponentCollection(org.graalvm.component.installer.ComponentCollection)

Aggregations

ComponentCollection (org.graalvm.component.installer.ComponentCollection)2 Test (org.junit.Test)1