From 6df6635f1250c399a2f39d87d0534301ce4c22d7 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Fri, 31 Aug 2007 15:43:58 +0000
Subject: [PATCH] Exposes the reversion functionality of the upgrader (issue 2169). Originally it was intended to be exposed as a new script but in order to avoid the negativity of having a command devoted to undoing the upgrade and to avoid more scripts in the top-level directory, I've exposed the functionality as 2 new options in the existing upgrade script. I will update the Wiki with documentation for these new options soon.
---
opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java b/opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java
index b9b2d38..2a34f8a 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java
@@ -37,7 +37,7 @@
import java.util.logging.Logger;
import org.opends.quicksetup.ApplicationException;
-import org.opends.quicksetup.ApplicationReturnCode;
+import org.opends.quicksetup.ReturnCode;
import org.opends.quicksetup.ProgressStep;
import org.opends.quicksetup.Installation;
import org.opends.quicksetup.installer.Installer;
@@ -211,7 +211,7 @@
} catch (ApplicationException ex)
{
- if (ApplicationReturnCode.ReturnCode.CANCELLED.equals(ex.getType())) {
+ if (ReturnCode.CANCELLED.equals(ex.getType())) {
uninstall();
setCurrentProgressStep(InstallProgressStep.FINISHED_CANCELED);
notifyListeners(null);
@@ -250,7 +250,7 @@
updateSummaryWithServerState(hmSummary);
setCurrentProgressStep(InstallProgressStep.FINISHED_WITH_ERROR);
ApplicationException ex = new ApplicationException(
- ApplicationReturnCode.ReturnCode.BUG,
+ ReturnCode.BUG,
Utils.getThrowableMsg(INFO_BUG_MSG.get(), t), t);
Message msg = getFormattedError(ex, true);
notifyListeners(msg);
@@ -407,7 +407,7 @@
if (in == null)
{
throw new ApplicationException(
- ApplicationReturnCode.ReturnCode.DOWNLOAD_ERROR,
+ ReturnCode.DOWNLOAD_ERROR,
INFO_ERROR_ZIPINPUTSTREAMNULL.get(zipName), null);
}
@@ -431,14 +431,14 @@
if (!Utils.createDirectory(parent))
{
throw new ApplicationException(
- ApplicationReturnCode.ReturnCode.FILE_SYSTEM_ACCESS_ERROR,
+ ReturnCode.FILE_SYSTEM_ACCESS_ERROR,
INFO_ERROR_COULD_NOT_CREATE_PARENT_DIR.get(parent), null);
}
}
catch (IOException ioe)
{
throw new ApplicationException(
- ApplicationReturnCode.ReturnCode.FILE_SYSTEM_ACCESS_ERROR,
+ ReturnCode.FILE_SYSTEM_ACCESS_ERROR,
INFO_ERROR_COULD_NOT_CREATE_PARENT_DIR.get(parent),
ioe);
}
--
Gitblit v1.10.0