From 288f117ffff3921da19f509c13fca924797515bb Mon Sep 17 00:00:00 2001
From: Violette Roche-Montane <violette.roche-montane@forgerock.com>
Date: Thu, 24 Apr 2014 13:38:24 +0000
Subject: [PATCH] OPENDJ-1343 Migrate dsconfig - Removed some printVerbose() and replaced them by println to fix a minor bug in which the final action - e.g: modifying an element and apply; did not display a success (or failure) message in interactive mode.
---
opendj3-server-dev/src/server/org/opends/server/tools/dsconfig/SetPropSubCommandHandler.java | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/tools/dsconfig/SetPropSubCommandHandler.java b/opendj3-server-dev/src/server/org/opends/server/tools/dsconfig/SetPropSubCommandHandler.java
index 664f25b..3fbef9d 100644
--- a/opendj3-server-dev/src/server/org/opends/server/tools/dsconfig/SetPropSubCommandHandler.java
+++ b/opendj3-server-dev/src/server/org/opends/server/tools/dsconfig/SetPropSubCommandHandler.java
@@ -293,8 +293,8 @@
if (result.isQuit()) {
if (!app.isMenuDrivenMode()) {
// User chose to cancel any changes.
- LocalizableMessage msg = INFO_DSCFG_CONFIRM_MODIFY_FAIL.get(ufn);
- app.printVerboseMessage(msg);
+ app.println();
+ app.println(INFO_DSCFG_CONFIRM_MODIFY_FAIL.get(ufn));
}
return MenuResult.quit();
} else if (result.isCancel()) {
@@ -311,8 +311,7 @@
if (app.isVerbose() || app.isInteractive())
{
app.println();
- LocalizableMessage msg = INFO_DSCFG_CONFIRM_MODIFY_SUCCESS.get(ufn);
- app.printVerboseMessage(msg);
+ app.println(INFO_DSCFG_CONFIRM_MODIFY_SUCCESS.get(ufn));
}
for (PropertyEditorModification<?> mod : editor.getModifications())
@@ -325,7 +324,7 @@
{
// This is a bug
throw new RuntimeException(
- "Unexpected error generating the command builder: "+ae, ae);
+ "Unexpected error generating the command builder: " + ae, ae);
}
}
@@ -752,8 +751,8 @@
if (result.isQuit()) {
if (!app.isMenuDrivenMode()) {
// User chose to quit.
- LocalizableMessage msg = INFO_DSCFG_CONFIRM_MODIFY_FAIL.get(ufn);
- app.printVerboseMessage(msg);
+ app.println();
+ app.println(INFO_DSCFG_CONFIRM_MODIFY_FAIL.get(ufn));
}
return MenuResult.quit();
} else if (result.isCancel()) {
--
Gitblit v1.10.0