From decb5b42c814c8dac80061faac30b394b7705e28 Mon Sep 17 00:00:00 2001
From: jcambon <jcambon@localhost>
Date: Wed, 13 May 2009 09:33:25 +0000
Subject: [PATCH] Revert of : Partial Fix for issue #3938 : dsconfig is really too slow in non-interactive mode, almost unusable on Niagara systems
---
opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java | 21 +--------------------
1 files changed, 1 insertions(+), 20 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java b/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java
index 228c780..64bed3d 100644
--- a/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java
+++ b/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java
@@ -59,7 +59,6 @@
import java.util.LinkedHashSet;
import javax.net.ssl.SSLException;
import javax.net.ssl.SSLHandshakeException;
-import org.opends.server.tools.ToolConstants;
/**
@@ -80,9 +79,6 @@
// This CLI is always using the administration connector with SSL
private boolean alwaysSSL = false;
- // Raw arguments
- private String[] rawArgs = null;
-
/**
* Creates a new LDAP management context factory.
*
@@ -327,13 +323,7 @@
return context;
}
- /**
- * {@inheritDoc}
- */
- public void setRawArguments(String[] args) {
- this.rawArgs = args;
- }
/**
* {@inheritDoc}
@@ -353,16 +343,7 @@
try
{
- if (rawArgs != null) {
- for (String rawArg : rawArgs) {
- if (rawArg.contains(ToolConstants.OPTION_LONG_HELP) ||
- (rawArg.charAt(1) == ToolConstants.OPTION_SHORT_HELP) || (rawArg.
- charAt(1) == '?')) {
- // used for usage default values only
- secureArgsList.initArgumentsWithConfiguration();
- }
- }
- }
+ secureArgsList.initArgumentsWithConfiguration();
}
catch (ConfigException ce)
{
--
Gitblit v1.10.0