From 9b0e980c54b4c50f85b5736b1fdcb60a473b818c Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Tue, 26 Jun 2007 21:03:20 +0000
Subject: [PATCH] Addresses a problem encountered in the upgrader on Windows in which configuration changes made to the server using an internal connection where not persisted in the config.ldif file.  The problem appears to have been an unclosed stream that was preventing the renaming of config.ldif.tmp to config.ldif.

---
 opendj-sdk/opends/src/server/org/opends/server/messages/UtilityMessages.java |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/messages/UtilityMessages.java b/opendj-sdk/opends/src/server/org/opends/server/messages/UtilityMessages.java
index df2540a..da43bc9 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/messages/UtilityMessages.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/messages/UtilityMessages.java
@@ -1652,6 +1652,23 @@
 
 
   /**
+   * The message ID for the message that will be used an attempt to rename a
+   * file fails because the existing target file cannot be deleted.  This takes
+   * a single argument, which is the provided path of the file to move.
+   */
+  public static final int MSGID_RENAMEFILE_CANNOT_RENAME =
+       CATEGORY_MASK_UTIL | SEVERITY_MASK_SEVERE_ERROR | 157;
+
+  /**
+   * The message ID for the message that will be used an attempt to rename a
+   * file fails because the rename operation fails.  This takes two
+   * arguments, the source and target file names.
+   */
+  public static final int MSGID_RENAMEFILE_CANNOT_DELETE_TARGET =
+       CATEGORY_MASK_UTIL | SEVERITY_MASK_SEVERE_ERROR | 158;
+
+
+  /**
    * Associates a set of generic messages with the message IDs defined in this
    * class.
    */
@@ -2197,6 +2214,14 @@
                     "The accepted value for global options are:");
     registerMessage(MSGID_GLOBAL_HELP_REFERENCE,
                     "See \"%s --help\" to get more usage help");
+
+    registerMessage(MSGID_RENAMEFILE_CANNOT_DELETE_TARGET,
+                    "Failed to delete target file %s.  Make sure the file is " +
+                    "not currently in use by this or another application");
+
+    registerMessage(MSGID_RENAMEFILE_CANNOT_RENAME,
+                    "Failed to rename file %s to %s");
+
   }
 }
 

--
Gitblit v1.10.0