Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.geronimo.deployment.cli
Class DeployTool  view DeployTool download DeployTool.java

java.lang.Object
  extended byorg.apache.geronimo.deployment.cli.DeployTool

public class DeployTool
extends java.lang.Object

The main class for the CLI deployer. Handles chunking the input arguments and formatting help text and maintaining the list of individual commands. Uses a ServerConnection to handle the server connection and arguments, and a list of DeployCommands to manage the details of the various available commands. Returns 0 normally, or 1 of any exceptions or error messages were generated (whether for syntax or other failure).

Version:
$Rev: 53762 $ $Date: 2004-10-04 18:54:53 -0400 (Mon, 04 Oct 2004) $

Field Summary
private static java.util.Map commands
           
private  boolean failed
           
 
Constructor Summary
DeployTool()
           
 
Method Summary
 boolean execute(java.lang.String[] args)
           
private static DeployCommand[] getAllCommands()
           
private static DeployCommand getCommand(java.lang.String name)
           
private  java.lang.String[] getCommonArgsAndCommand(java.lang.String[] all)
           
private  java.lang.String hangingIndent(java.lang.String source, int cols)
           
static void main(java.lang.String[] args)
           
private  void processException(java.io.PrintWriter out, java.lang.Exception e)
           
static void registerCommand(DeployCommand command)
           
private  void renderCommandList(java.io.PrintWriter out, DeployCommand[] all)
           
private  void showHelp(java.io.PrintWriter out, java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commands

private static final java.util.Map commands

failed

private boolean failed
Constructor Detail

DeployTool

public DeployTool()
Method Detail

registerCommand

public static void registerCommand(DeployCommand command)

getCommand

private static DeployCommand getCommand(java.lang.String name)

getAllCommands

private static DeployCommand[] getAllCommands()

execute

public boolean execute(java.lang.String[] args)

processException

private void processException(java.io.PrintWriter out,
                              java.lang.Exception e)

showHelp

private void showHelp(java.io.PrintWriter out,
                      java.lang.String[] args)

hangingIndent

private java.lang.String hangingIndent(java.lang.String source,
                                       int cols)

renderCommandList

private void renderCommandList(java.io.PrintWriter out,
                               DeployCommand[] all)

getCommonArgsAndCommand

private java.lang.String[] getCommonArgsAndCommand(java.lang.String[] all)

main

public static void main(java.lang.String[] args)