public PatchToolImpl(final InstallationManager manager) { this.manager = manager; this.runner = new IdentityPatchRunner(manager.getInstalledImage()); this.callback = runner; }
public PatchToolImpl(final InstallationManager manager) { this.manager = manager; this.runner = new IdentityPatchRunner(manager.getInstalledImage()); this.callback = runner; }
protected String getExpectedHistoryDir(final String patchId) throws IOException { return updateInstallationManager().getInstalledImage().getPatchesDir().getAbsolutePath() + File.separator + patchId; }
this.manager = load(jbossHome, productConfig); final File cleanupMaker = new File(manager.getInstalledImage().getInstallationMetadata(), "cleanup-patching-dirs"); boolean cleanup = cleanupMaker.exists(); for(InstalledIdentity installedIdentity : manager.getInstalledIdentities()) { final File renamingMaker = new File(manager.getInstalledImage().getInstallationMetadata(), "cleanup-renaming-files"); if (renamingMaker.exists()) { try {
this.manager = load(jbossHome, productConfig); final File cleanupMaker = new File(manager.getInstalledImage().getInstallationMetadata(), "cleanup-patching-dirs"); boolean cleanup = cleanupMaker.exists(); for(InstalledIdentity installedIdentity : manager.getInstalledIdentities()) { final File renamingMaker = new File(manager.getInstalledImage().getInstallationMetadata(), "cleanup-renaming-files"); if (renamingMaker.exists()) { try {
protected void removeRollbackXml(String patchId) throws IOException { final File oneOff1History = updateInstallationManager().getInstalledImage().getPatchHistoryDir(patchId); assertTrue(oneOff1History.exists()); final File oneOff1RollbackXml = new File(oneOff1History, "rollback.xml"); assertTrue(oneOff1RollbackXml.exists()); assertTrue(oneOff1RollbackXml.delete()); assertFalse(oneOff1RollbackXml.exists()); }