Search in sources :

Example 21 with CatalogContents

use of org.graalvm.component.installer.model.CatalogContents in project graal by oracle.

the class InfoTest method initVersion.

private Version initVersion(String s) throws IOException {
    Version v = Version.fromString(s);
    storage.graalInfo.put(BundleConstants.GRAAL_VERSION, v.toString());
    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;
}
Also used : Path(java.nio.file.Path) Version(org.graalvm.component.installer.Version) CatalogContents(org.graalvm.component.installer.model.CatalogContents) RemoteCatalogDownloader(org.graalvm.component.installer.remote.RemoteCatalogDownloader) CatalogIterable(org.graalvm.component.installer.remote.CatalogIterable)

Aggregations

CatalogContents (org.graalvm.component.installer.model.CatalogContents)21 RemoteCatalogDownloader (org.graalvm.component.installer.remote.RemoteCatalogDownloader)11 Path (java.nio.file.Path)9 URL (java.net.URL)8 ComponentCatalog (org.graalvm.component.installer.ComponentCatalog)7 ComponentInfo (org.graalvm.component.installer.model.ComponentInfo)6 Version (org.graalvm.component.installer.Version)5 ComponentRegistry (org.graalvm.component.installer.model.ComponentRegistry)5 CatalogIterable (org.graalvm.component.installer.remote.CatalogIterable)5 Test (org.junit.Test)5 List (java.util.List)4 CommandInput (org.graalvm.component.installer.CommandInput)4 HashSet (java.util.HashSet)3 RemotePropertiesStorage (org.graalvm.component.installer.remote.RemotePropertiesStorage)2 FileInputStream (java.io.FileInputStream)1 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1 ComponentParam (org.graalvm.component.installer.ComponentParam)1 FileIterable (org.graalvm.component.installer.FileIterable)1 SoftwareChannelSource (org.graalvm.component.installer.SoftwareChannelSource)1