mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jcambon
12.18.2009 62be845bbaf00d0ff6fa8584695efdfe91e4872e
opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java
@@ -59,6 +59,7 @@
import java.util.LinkedHashSet;
import javax.net.ssl.SSLException;
import javax.net.ssl.SSLHandshakeException;
import org.opends.server.tools.ToolConstants;
/**
@@ -79,6 +80,9 @@
  // 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.
   *
@@ -323,7 +327,13 @@
    return context;
  }
  /**
   * {@inheritDoc}
   */
  public void setRawArguments(String[] args) {
    this.rawArgs = args;
  }
  /**
   * {@inheritDoc}
@@ -343,7 +353,16 @@
    try
    {
      secureArgsList.initArgumentsWithConfiguration();
      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();
          }
        }
      }
    }
    catch (ConfigException ce)
    {