use of org.graalvm.component.installer.jar.JarMetaLoader in project graal by oracle.
the class InstallerTest method setupComponentInstall.
private void setupComponentInstall(String relativePath) throws IOException {
File f = dataFile(relativePath).toFile();
JarFile jf = new JarFile(f);
loader = new JarMetaLoader(jf, this);
componentInfo = loader.createComponentInfo();
componentJarFile = new JarArchive(jf);
loader.loadPaths();
installer = new Installer(fb(), fileOps, componentInfo, registry, registry, componentJarFile);
installer.setInstallPath(targetPath);
installer.setLicenseRelativePath(SystemUtils.fromCommonRelative(loader.getLicensePath()));
}
Aggregations