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/util/FileManager.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/util/FileManager.java b/opends/src/quicksetup/org/opends/quicksetup/util/FileManager.java
index ffdd099..8379c04 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/util/FileManager.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/util/FileManager.java
@@ -162,14 +162,14 @@
         if (target.exists()) {
           if (!target.delete()) {
             throw new ApplicationException(
-                    ApplicationReturnCode.ReturnCode.FILE_SYSTEM_ACCESS_ERROR,
+                    ReturnCode.FILE_SYSTEM_ACCESS_ERROR,
                     INFO_ERROR_DELETING_FILE.get(Utils.getPath(target)), null);
           }
         }
       }
       if (!fileToRename.renameTo(target)) {
         throw new ApplicationException(
-                ApplicationReturnCode.ReturnCode.FILE_SYSTEM_ACCESS_ERROR,
+                ReturnCode.FILE_SYSTEM_ACCESS_ERROR,
                 INFO_ERROR_RENAMING_FILE.get(Utils.getPath(fileToRename),
                         Utils.getPath(target)), null);
       }
@@ -525,7 +525,7 @@
                       objectFile.getAbsolutePath(),
                       destination.getAbsolutePath());
               throw new ApplicationException(
-                      ApplicationReturnCode.ReturnCode.FILE_SYSTEM_ACCESS_ERROR,
+                      ReturnCode.FILE_SYSTEM_ACCESS_ERROR,
                       errMsg, null);
             } finally {
               if (fis != null) {
@@ -548,7 +548,7 @@
                     objectFile.getAbsolutePath(),
                     destination.getAbsolutePath());
             throw new ApplicationException(
-                    ApplicationReturnCode.ReturnCode.FILE_SYSTEM_ACCESS_ERROR,
+                    ReturnCode.FILE_SYSTEM_ACCESS_ERROR,
                     errMsg, null);
           }
         } else {
@@ -654,7 +654,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);
       }
 

--
Gitblit v1.10.0