From 4d20272586714e79a1b8d5f4a48f75891946a148 Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Mon, 31 May 2010 09:11:54 +0000
Subject: [PATCH] Fix issue #4560. Added special case for the --reset keyword.
---
opends/src/server/org/opends/server/tools/dsconfig/ArgumentExceptionFactory.java | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/dsconfig/ArgumentExceptionFactory.java b/opends/src/server/org/opends/server/tools/dsconfig/ArgumentExceptionFactory.java
index e649e07..aed84ad 100644
--- a/opends/src/server/org/opends/server/tools/dsconfig/ArgumentExceptionFactory.java
+++ b/opends/src/server/org/opends/server/tools/dsconfig/ArgumentExceptionFactory.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Copyright 2008 Sun Microsystems, Inc.
+ * Copyright 2008-2010 Sun Microsystems, Inc.
*/
package org.opends.server.tools.dsconfig;
@@ -497,6 +497,26 @@
/**
* Creates an argument exception which should be used when an
+ * attempt is made to reset a property with a value.
+ *
+ * @param name
+ * The name of the mandatory property.
+ * @param resetOption
+ * The name of the option which should be used to reset the
+ * property's values.
+ * @return Returns an argument exception.
+ */
+ public static ArgumentException unableToResetPropertyWithValue(String name,
+ String resetOption) {
+ Message message = ERR_DSCFG_ERROR_UNABLE_TO_RESET_PROPERTY_WITH_VALUE.get(
+ resetOption, name, resetOption);
+ return new ArgumentException(message);
+ }
+
+
+
+ /**
+ * Creates an argument exception which should be used when an
* attempt is made to set the naming property for a managed object
* during creation.
*
--
Gitblit v1.10.0