protected InstallationManager loadInstallationManager() throws IOException { final File jbossHome = new File(tempDir, JBOSS_INSTALLATION); final File modules = new File(jbossHome, MODULES); return InstallationManager.load(jbossHome, Collections.singletonList(modules), Collections.emptyList(), productConfig); }
protected static InstallationManager load(final File jbossHome, final ProductConfig productConfig) throws IOException { final InstalledImage installedImage = InstalledIdentity.installedImage(jbossHome); final List<File> moduleRoots = getModulePath(installedImage); final List<File> bundlesRoots = getBundlePath(installedImage); return InstallationManager.load(jbossHome, moduleRoots, bundlesRoots, productConfig); }
/** * Create an offline local patch tool. * * @param jbossHome the distribution root * @param moduleRoots the module roots * @param bundleRoots the bundle roots * @return the patch tool * @throws IOException */ public static PatchTool createLocalTool(final File jbossHome, final List<File> moduleRoots, final List<File> bundleRoots) throws IOException { final File[] resolvedPath = resolveLayeredModulePath(moduleRoots); // Resolve the patched module root for the module loader final ModuleLoader loader = new LocalModuleLoader(resolvedPath); final ProductConfig config = ProductConfig.fromFilesystemSlot(loader, jbossHome.getAbsolutePath(), Collections.emptyMap()); final InstallationManager manager = InstallationManager.load(jbossHome, moduleRoots, bundleRoots, config); return create(manager); }
protected static InstallationManager load(final File jbossHome, final ProductConfig productConfig) throws IOException { final InstalledImage installedImage = InstalledIdentity.installedImage(jbossHome); final List<File> moduleRoots = getModulePath(installedImage); final List<File> bundlesRoots = getBundlePath(installedImage); return InstallationManager.load(jbossHome, moduleRoots, bundlesRoots, productConfig); }
/** * Create an offline local patch tool. * * @param jbossHome the distribution root * @param moduleRoots the module roots * @param bundleRoots the bundle roots * @return the patch tool * @throws IOException */ public static PatchTool createLocalTool(final File jbossHome, final List<File> moduleRoots, final List<File> bundleRoots) throws IOException { final File[] resolvedPath = resolveLayeredModulePath(moduleRoots); // Resolve the patched module root for the module loader final ModuleLoader loader = new LocalModuleLoader(resolvedPath); final ProductConfig config = ProductConfig.fromFilesystemSlot(loader, jbossHome.getAbsolutePath(), Collections.emptyMap()); final InstallationManager manager = InstallationManager.load(jbossHome, moduleRoots, bundleRoots, config); return create(manager); }