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/upgrader/MigrationManager.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/upgrader/MigrationManager.java b/opends/src/quicksetup/org/opends/quicksetup/upgrader/MigrationManager.java
index 7b02e34..c32c544 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/upgrader/MigrationManager.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/upgrader/MigrationManager.java
@@ -32,7 +32,7 @@
import static org.opends.messages.QuickSetupMessages.*;
import org.opends.quicksetup.ApplicationException;
-import org.opends.quicksetup.ApplicationReturnCode;
+import org.opends.quicksetup.ReturnCode;
import org.opends.quicksetup.Installation;
import org.opends.quicksetup.UserInteraction;
import org.opends.quicksetup.Constants;
@@ -179,7 +179,7 @@
Message msg = INFO_ERROR_APPLYING_CUSTOM_CONFIG.get();
LOG.log(Level.INFO, msg.toString(), e);
throw new ApplicationException(
- ApplicationReturnCode.ReturnCode.IMPORT_ERROR, msg, e);
+ ReturnCode.IMPORT_ERROR, msg, e);
}
}
@@ -201,7 +201,7 @@
Message msg = INFO_ERROR_APPLYING_CUSTOM_SCHEMA.get();
LOG.log(Level.INFO, msg.toString(), e);
throw new ApplicationException(
- ApplicationReturnCode.ReturnCode.IMPORT_ERROR, msg, e);
+ ReturnCode.IMPORT_ERROR, msg, e);
}
}
@@ -274,7 +274,7 @@
// do nothing; will retry;
} else {
throw new ApplicationException(
- ApplicationReturnCode.ReturnCode.CANCELLED,
+ ReturnCode.CANCELLED,
INFO_UPGRADE_CANCELED.get(), e);
}
} else {
@@ -341,7 +341,7 @@
int ret = oo.getReturnCode();
if (ret != 0) {
throw new ApplicationException(
- ApplicationReturnCode.ReturnCode.TOOL_ERROR,
+ ReturnCode.TOOL_ERROR,
INFO_ERROR_LDIF_DIFF_TOOL_RETURN_CODE.get(Integer.toString(ret)),
null);
}
--
Gitblit v1.10.0