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

lutoff
27.12.2007 9152abd295ad89928460be58312d123861a518b5
opendj-sdk/opends/src/server/org/opends/server/admin/client/cli/DsFrameworkCliMain.java
File was renamed from opendj-sdk/opends/src/server/org/opends/server/admin/client/cli/DsServiceCliMain.java
@@ -41,7 +41,7 @@
import org.opends.server.types.NullOutputStream;
import org.opends.server.util.args.ArgumentException;
import static org.opends.server.admin.client.cli.DsServiceCliReturnCode.*;
import static org.opends.server.admin.client.cli.DsFrameworkCliReturnCode.*;
import static org.opends.server.messages.MessageHandler.*;
import static org.opends.server.messages.AdminMessages.*;
import static org.opends.server.messages.ToolMessages.*;
@@ -50,15 +50,16 @@
/**
 * This class provides a tool that can be used to Directory Server services.
 * This class provides a tool that can be used to Directory Server framework
 * services.
 */
public class DsServiceCliMain
public class DsFrameworkCliMain
{
  /**
   * The fully-qualified name of this class.
   */
  private static final String CLASS_NAME =
      "org.opends.server.admin.client.cli.DsServiceCliMain";
      "org.opends.server.admin.client.cli.DsFrameworkCliMain";
  // The print stream to use for standard error.
  private PrintStream err;
@@ -69,19 +70,19 @@
  /**
   * Constructor for the DsServiceCLI object.
   * Constructor for the DsFrameworkCLI object.
   *
   * @param  out            The print stream to use for standard output.
   * @param  err            The print stream to use for standard error.
   */
  public DsServiceCliMain(PrintStream out, PrintStream err)
  public DsFrameworkCliMain(PrintStream out, PrintStream err)
  {
    this.out           = out;
    this.err           = err;
  }
  /**
   * The main method for dsservice tool.
   * The main method for dsframework tool.
   *
   * @param  args  The command-line arguments provided to this program.
   */
@@ -98,7 +99,7 @@
  /**
   * Parses the provided command-line arguments and uses that information to
   * run the dsservice tool.
   * run the dsframework tool.
   *
   * @param  args  The command-line arguments provided to this program.
   *
@@ -112,7 +113,7 @@
  /**
   * Parses the provided command-line arguments and uses that information to
   * run the dsservice tool.
   * run the dsframework tool.
   *
   * @param  args              The command-line arguments provided to this
   *                           program.
@@ -149,13 +150,13 @@
      err = new PrintStream(errStream);
    }
    DsServiceCliMain dsServiceCli = new DsServiceCliMain(out, err);
    return dsServiceCli.execute(args,initializeServer);
    DsFrameworkCliMain dsFrameworkCli = new DsFrameworkCliMain(out, err);
    return dsFrameworkCli.execute(args,initializeServer);
  }
  /**
   * Parses the provided command-line arguments and uses that information to
   * run the dsservice tool.
   * run the dsframework tool.
   *
   * @param  args              The command-line arguments provided to this
   *                           program.
@@ -167,11 +168,11 @@
  {
    // Create the command-line argument parser for use with this
    // program.
    DsServiceCliParser argParser ;
    DsFrameworkCliParser argParser ;
    try
    {
      String toolDescription = getMessage(MSGID_ADMIN_TOOL_DESCRIPTION);
      argParser = new DsServiceCliParser(CLASS_NAME,
      argParser = new DsFrameworkCliParser(CLASS_NAME,
          toolDescription, false);
      argParser.initializeParser(out);
    }
@@ -322,7 +323,7 @@
    catch (ADSContextException e)
    {
      adsException = e;
      returnCode = DsServiceCliReturnCode.getReturncodeFromAdsError(e
      returnCode = DsFrameworkCliReturnCode.getReturncodeFromAdsError(e
          .getError());
      if (returnCode == null)
      {