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

jvergara
26.02.2009 cf102e91e13c1134657843c065fb29d50edaa7dc
Extend DirectoryServer so that other tools launching it can impose their own usage message.
1 files modified
17 ■■■■■ changed files
opends/src/server/org/opends/server/core/DirectoryServer.java 17 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -245,6 +245,11 @@
   */
  private static boolean serverLocked = false;
  /**
   * The message to be displayed on the command-line when the user asks for the
   * usage.
   */
  private static Message toolDescription = INFO_DSCORE_TOOL_DESCRIPTION.get();
  /**
   * Return codes used when the hidden option --checkStartability is used.
@@ -8920,6 +8925,16 @@
  }
  /**
   * Sets the message to be displayed on the command-line when the user asks for
   * the usage.
   * @param msg the message to be displayed on the command-line when the user
   * asks for the usage.
   */
  public static void setToolDescription (Message msg)
  {
    toolDescription = msg;
  }
  /**
   * Retrieves the DN of the configuration entry with which this alert generator
@@ -9056,7 +9071,7 @@
    // Create the command-line argument parser for use with this program.
    Message toolDescription = INFO_DSCORE_TOOL_DESCRIPTION.get();
    Message toolDescription = DirectoryServer.toolDescription;
    ArgumentParser argParser =
         new ArgumentParser("org.opends.server.core.DirectoryServer",
                            toolDescription, false);