/**
   * The instance main program.
   *
   * @param args Command line arguments
   */
  public void process(String args[]) {

    setAwait(true);
    setCatalinaHome();
    setCatalinaBase();
    try {
      if (arguments(args)) {
        if (starting) {
          load(args);
          start();
        } else if (stopping) {
          stopServer();
        }
      }
    } catch (Exception e) {
      e.printStackTrace(System.out);
    }
  }
示例#2
0
 public void stopServer() {
   stopServer(null);
 }