From 6b654d23b0b1d0e5151941aece4658b5e6e8f50f Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 18 Nov 2008 18:09:45 +0000
Subject: [PATCH] Fix for issue 3620 (Control Panel: missing "--noPropertiesFile" in the equivalent command line)

---
 opends/src/guitools/org/opends/guitools/controlpanel/task/Task.java |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/task/Task.java b/opends/src/guitools/org/opends/guitools/controlpanel/task/Task.java
index ab8ccdf..cfc0420 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/task/Task.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/task/Task.java
@@ -740,6 +740,15 @@
   }
 
   /**
+   * Returns the noPropertiesFile argument.
+   * @return the noPropertiesFile argument.
+   */
+  protected String getNoPropertiesFileArgument()
+  {
+    return "--noPropertiesFile";
+  }
+
+  /**
    * Returns the command-line to be displayed (when we display the equivalent
    * command-line).
    * @return the command-line to be displayed.
@@ -822,6 +831,7 @@
     args.add(getCommandLinePath("ldapmodify"));
     args.addAll(getObfuscatedCommandLineArguments(
         getConnectionCommandLineArguments(useAdminCtx, true)));
+    args.add(getNoPropertiesFileArgument());
     StringBuilder sb = new StringBuilder();
     for (String arg : args)
     {
@@ -918,6 +928,7 @@
     args.add(getCommandLinePath("ldapmodify"));
     args.addAll(getObfuscatedCommandLineArguments(
         getConnectionCommandLineArguments(useAdminCtx, true)));
+    args.add(getNoPropertiesFileArgument());
     StringBuilder sb = new StringBuilder();
     for (String arg : args)
     {

--
Gitblit v1.10.0