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/guitools/org/opends/guitools/uninstaller/Uninstaller.java |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/uninstaller/Uninstaller.java b/opends/src/guitools/org/opends/guitools/uninstaller/Uninstaller.java
index cb7cf07..b27b742 100644
--- a/opends/src/guitools/org/opends/guitools/uninstaller/Uninstaller.java
+++ b/opends/src/guitools/org/opends/guitools/uninstaller/Uninstaller.java
@@ -592,6 +592,13 @@
   }
 
   /**
+   * {@inheritDoc}
+   */
+  public ReturnCode getReturnCode() {
+    return null;
+  }
+
+  /**
    * Initialize the different map used in this class.
    */
   private void initMaps() {
@@ -828,7 +835,7 @@
     }
     catch (Throwable t) {
       ue = new ApplicationException(
-              ApplicationReturnCode.ReturnCode.BUG,
+              ReturnCode.BUG,
               getThrowableMsg(INFO_BUG_MSG.get(), t), t);
       status = UninstallProgressStep.FINISHED_WITH_ERROR;
       Message msg = getFormattedError(ue, true);
@@ -1137,7 +1144,7 @@
         errMsg = INFO_ERROR_DELETING_DIRECTORY.get(file.getAbsolutePath());
       }
       throw new ApplicationException(
-          ApplicationReturnCode.ReturnCode.FILE_SYSTEM_ACCESS_ERROR,
+          ReturnCode.FILE_SYSTEM_ACCESS_ERROR,
           errMsg, null);
     }
 
@@ -1250,7 +1257,7 @@
         break;
       default:
         throw new ApplicationException(
-            ApplicationReturnCode.ReturnCode.WINDOWS_SERVICE_ERROR,
+            ReturnCode.WINDOWS_SERVICE_ERROR,
                 errorMessage, null);
     }
   }
@@ -1869,7 +1876,7 @@
       Message errorMessage = INFO_ERROR_CONFIGURING_REMOTE_GENERIC.get(
               serverDisplay, t.toString());
       throw new ApplicationException(
-          ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, errorMessage,
+          ReturnCode.CONFIGURATION_ERROR, errorMessage,
           t);
     }
     ADSContext adsContext = new ADSContext(ctx);
@@ -1887,7 +1894,7 @@
         ADSContextException.ErrorType.NOT_YET_REGISTERED)
       {
         throw new ApplicationException(
-            ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR,
+            ReturnCode.CONFIGURATION_ERROR,
             INFO_REMOTE_ADS_EXCEPTION.get(
                     serverDisplay, ace.toString()), ace);
       }

--
Gitblit v1.10.0