org.ow2.jasmine.deployme
Class CommandLineParser

java.lang.Object
  extended by org.ow2.jasmine.deployme.CommandLineParser

public class CommandLineParser
extends java.lang.Object

Parse the command line and call DeployMe main class

Author:
Remy Bresson

Constructor Summary
CommandLineParser()
           
 
Method Summary
protected static java.lang.String checkArgEntry(java.lang.String argEntry)
          Check if the arg begin with '-' and remove '-'
static void main(java.lang.String[] args)
          Main
protected static CommandLine parseCommandLine(java.lang.String[] args)
          Parse the command line
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineParser

public CommandLineParser()
Method Detail

main

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

Parameters:
args - command line

parseCommandLine

protected static CommandLine parseCommandLine(java.lang.String[] args)
Parse the command line

Parameters:
args - command line
Returns:
A object who represent parameters to use with deployMe

checkArgEntry

protected static java.lang.String checkArgEntry(java.lang.String argEntry)
Check if the arg begin with '-' and remove '-'

Parameters:
argEntry - the argument to check
Returns:
argEntry without '-'
Throws:
java.lang.IllegalArgumentException - when argEntry doesn't begin with '-'


Copyright © 2009 OW2 Consortium. All Rights Reserved.