use of org.graalvm.component.installer.remote.CatalogIterable.CatalogItemParam in project graal by oracle.
the class CommandTestBase method initRemoteComponent.
protected void initRemoteComponent(String relativeJar, String u, String disp, String spec) throws IOException {
clu = getClass().getResource(relativeJar);
url = new URL(u);
Handler.bind(url.toString(), clu);
File f = dataFile(relativeJar).toFile();
JarFile jf = new JarFile(f, false);
ComponentPackageLoader cpl = new JarMetaLoader(jf, this);
info = cpl.getComponentInfo();
// unknown in catalog metadata
info.setLicensePath(null);
info.setRemoteURL(url);
param = rparam = new CatalogItemParam(this, info, disp, spec, this, false);
}
Aggregations