use of org.graalvm.component.installer.remote.CatalogIterable in project graal by oracle.
the class InstallLicensedCatalogTest method initCatalogIterable.
private void initCatalogIterable(URL u) {
GraalChannel channel = new GraalChannel(this, this, getLocalRegistry());
channel.setIndexURL(u);
cfactory = new CatalogFactory() {
@Override
public ComponentCatalog createComponentCatalog(CommandInput input) {
try {
return new CatalogContents(InstallLicensedCatalogTest.this, channel.getStorage(), localRegistry);
} catch (IOException ex) {
fail("Unexpected exception");
return null;
}
}
@Override
public List<GraalEdition> listEditions(ComponentRegistry targetGraalVM) {
return Collections.emptyList();
}
};
paramIterable = new CatalogIterable(this, this);
}
use of org.graalvm.component.installer.remote.CatalogIterable in project graal by oracle.
the class InstallVersionsTest method initVersion.
private Version initVersion(String s) throws IOException {
Version v = Version.fromString(s);
storage.graalInfo.put(BundleConstants.GRAAL_VERSION, s);
Path catalogPath = dataFile("../repo/catalog.properties");
RemoteCatalogDownloader downloader = new RemoteCatalogDownloader(this, this, catalogPath.toUri().toURL());
registry = new CatalogContents(this, downloader.getStorage(), localRegistry);
paramIterable = new CatalogIterable(this, this);
return v;
}
use of org.graalvm.component.installer.remote.CatalogIterable in project graal by oracle.
the class InstallTest method initCatalogIterable.
private void initCatalogIterable(URL u) {
RemoteCatalogDownloader rcd = new RemoteCatalogDownloader(this, this, u);
registry = new CatalogContents(this, rcd.getStorage(), localRegistry);
componentIterable = new CatalogIterable(this, this);
}
use of org.graalvm.component.installer.remote.CatalogIterable in project graal by oracle.
the class UpgradeTest method initVersion.
private Version initVersion(String s, String catalogResource) throws IOException {
Version v = Version.fromString(s);
storage.graalInfo.put(BundleConstants.GRAAL_VERSION, s);
Path catalogPath = dataFile(catalogResource);
downloader = new RemoteCatalogDownloader(this, this, catalogPath.toUri().toURL());
registry = new CatalogContents(this, downloader.getStorage(), localRegistry);
paramIterable = new CatalogIterable(this, this);
helper = new UpgradeProcess(this, this, registry);
return v;
}
use of org.graalvm.component.installer.remote.CatalogIterable in project graal by oracle.
the class InstallFromGdsTest method setUp.
@Override
@Before
public void setUp() throws Exception {
super.setUp();
storage.graalInfo.put(CommonConstants.CAP_GRAALVM_VERSION, "20.3.0");
Handler.bind("test://acme.org/GRAALVM_EE_JAVA8_20.3.0/license.txt", dataFile("data/license.txt").toUri().toURL());
gdsDownloadFolder = dataFile("data");
gdsCatalogPath = gdsDownloadFolder.resolve("insttest.json");
gdsUrl = "{ee}gds:" + gdsCatalogPath.toUri().toURL().toString();
catalogStorage.graalInfo.put(CommonConstants.RELEASE_CATALOG_KEY, gdsUrl);
iterableInstance = new CatalogIterable(this, this);
gl = new GraalEditionList(this, this, getLocalRegistry());
gl.setDefaultCatalogSpec(gdsUrl);
gl.setDefaultEdition(gl.getEdition("ee"));
}
Aggregations