use of org.graalvm.component.installer.model.CatalogContents 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.model.CatalogContents in project graal by oracle.
the class UninstallTest method setupComponentsWithDeps.
private void setupComponentsWithDeps() throws Exception {
storage.graalInfo.put(CommonConstants.CAP_GRAALVM_VERSION, "19.3-dev");
Path catalogFile = dataFile("cataloginstallDeps.properties");
RemoteCatalogDownloader downloader = new RemoteCatalogDownloader(this, this, catalogFile.toUri().toURL());
componentCatalog = new CatalogContents(this, downloader.getStorage(), getLocalRegistry());
ComponentInfo ruby = componentCatalog.findComponent("org.graalvm.ruby");
ComponentInfo fastr = componentCatalog.findComponent("org.graalvm.r");
Set<ComponentInfo> deps = new HashSet<>();
componentCatalog.findDependencies(ruby, true, null, deps);
componentCatalog.findDependencies(fastr, true, null, deps);
deps.add(ruby);
deps.add(fastr);
storage.installed.addAll(deps);
deps.forEach((ci) -> ci.setInfoPath(""));
}
use of org.graalvm.component.installer.model.CatalogContents 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.model.CatalogContents in project graal by oracle.
the class DirectoryCatalogProviderTest method openCatalog.
ComponentCatalog openCatalog(SoftwareChannel ch, Version v) throws IOException {
ComponentCatalog cc = new CatalogContents(this, ch.getStorage(), getLocalRegistry(), v);
cc.getComponentIDs();
return cc;
}
use of org.graalvm.component.installer.model.CatalogContents in project graal by oracle.
the class CatalogIterableTest method setupCatalog.
private void setupCatalog() throws Exception {
this.storage.graalInfo.put(BundleConstants.GRAAL_VERSION, "19.3-dev");
String relSpec = "commands/cataloginstallDeps.properties";
URL u = getClass().getResource(relSpec);
Handler.bind(TEST_CATALOG_URL, u);
downloader = new RemoteCatalogDownloader(this, this, new URL(TEST_CATALOG_URL));
this.registry = new CatalogContents(this, downloader.getStorage(), getLocalRegistry());
}
Aggregations