java.lang.Object
org.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) $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
commands
private static final java.util.Map commands
failed
private boolean failed
DeployTool
public DeployTool()
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)