/** * Load the layers based on the default setup. * * @param jbossHome the jboss home directory * @param productConfig the product config * @param repoRoots the repository roots * @return the available layers * @throws IOException */ public static InstalledIdentity load(final File jbossHome, final ProductConfig productConfig, final File... repoRoots) throws IOException { final InstalledImage installedImage = installedImage(jbossHome); return load(installedImage, productConfig, Arrays.<File>asList(repoRoots), Collections.<File>emptyList()); }
/** * Load the layers based on the default setup. * * @param jbossHome the jboss home directory * @param productConfig the product config * @param repoRoots the repository roots * @return the available layers * @throws IOException */ public static InstalledIdentity load(final File jbossHome, final ProductConfig productConfig, final File... repoRoots) throws IOException { final InstalledImage installedImage = installedImage(jbossHome); return load(installedImage, productConfig, Arrays.<File>asList(repoRoots), Collections.<File>emptyList()); }
final Identity identity = original.getIdentity(); final PatchableTarget.TargetInfo identityInfo = identity.loadTargetInfo(); final InstallationModificationImpl.InstallationState state = load(this);
final Identity identity = original.getIdentity(); final PatchableTarget.TargetInfo identityInfo = identity.loadTargetInfo(); final InstallationModificationImpl.InstallationState state = load(this);
assertPatchHasBeenApplied(patchResult, patch); InstalledIdentity patchedInstalledIdentity = InstalledIdentity.load(env.getInstalledImage().getJbossHome(), productConfig, env.getInstalledImage().getModulesDir()); assertInstallationIsPatched(patch, patchedInstalledIdentity.getIdentity().loadTargetInfo()); assertFileExists(env.getInstalledImage().getJbossHome(), "bin", fileAdded.getItem().getName()); assertPatchHasBeenRolledBack(rollbackResult, identityBeforePatch); InstalledIdentity rolledBackInstalledIdentity = InstalledIdentity.load(env.getInstalledImage().getJbossHome(), productConfig, env.getInstalledImage().getModulesDir()); PatchingAssert.assertFileDoesNotExist(env.getInstalledImage().getJbossHome(), "bin", fileAdded.getItem().getName()); if (File.separatorChar != '\\') {
InstalledIdentity patchedInstalledIdentity = InstalledIdentity.load(env.getInstalledImage().getJbossHome(), productConfig, env.getInstalledImage().getModulesDir()); assertInstallationIsPatched(patch, patchedInstalledIdentity.getIdentity().loadTargetInfo()); assertFileExists(env.getInstalledImage().getJbossHome(), "bin", fileAdded.getItem().getName());
InstalledIdentity patchedInstalledIdentity = InstalledIdentity.load(env.getInstalledImage().getJbossHome(), productConfig, env.getInstalledImage().getModulesDir()); assertInstallationIsPatched(patch, patchedInstalledIdentity.getIdentity().loadTargetInfo()); assertFileExists(env.getInstalledImage().getJbossHome(), "bin", fileAdded.getItem().getName());
assertPatchHasBeenApplied(patchResult, patch); InstalledIdentity patchedInstalledIdentity = InstalledIdentity.load(env.getInstalledImage().getJbossHome(), productConfig, env.getInstalledImage().getModulesDir()); assertInstallationIsPatched(patch, patchedInstalledIdentity.getIdentity().loadTargetInfo()); assertFileExists(env.getInstalledImage().getJbossHome(), "bin", fileAdded.getItem().getName());