com.dtolabs.launcher
Class Setup

java.lang.Object
  extended by com.dtolabs.launcher.Setup
All Implemented Interfaces:
CLIToolLogger, BaseLogger

public class Setup
extends java.lang.Object
implements CLIToolLogger

Setup which replaces old command line parsing at the shell layer which leaves the old setup/setup.bat to only blindly pass arguments along with the java.home, rdeck.base, rdeck.home, and ant.home environment


Nested Class Summary
static class Setup.Parameters
           
static class Setup.SetupException
          Exception class
 
Field Summary
static boolean FORCE_FLAG
          force a rewrite of the framework configuration files.
static org.apache.log4j.Logger logger
           
static java.lang.String RDECK_BASE
          basic bootstrapped rdeck.base
static java.lang.String RDECK_HOME
          basic bootstrapped rdeck.home
static java.lang.String SETUP_USAGE
          setup usage statement
static java.lang.String TEMPLATE_RESOURCES_PATH
           
 
Constructor Summary
Setup()
          default constructor
 
Method Summary
 void debug(java.lang.String message)
          Logs debug message via implementation specific log facility
 void error(java.lang.String message)
          Logs error message via implementation specific log facility
 void execute(java.lang.String[] args)
          Validates the install, generates preference data and then invokes the adminCmd.xml
 Setup.Parameters getParameters()
           
 void log(java.lang.String message)
          Logs message via implementation specific log facility
static void main(java.lang.String[] args)
          called from setup shell/bat script.
 void performSetup()
           
static void printUsage()
           
 void verbose(java.lang.String message)
          Logs verbose message via implementation specific log facility
 void warn(java.lang.String message)
          Logs warning message via implementation specific log facility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final org.apache.log4j.Logger logger

RDECK_HOME

public static java.lang.String RDECK_HOME
basic bootstrapped rdeck.home


RDECK_BASE

public static java.lang.String RDECK_BASE
basic bootstrapped rdeck.base


SETUP_USAGE

public static final java.lang.String SETUP_USAGE
setup usage statement

See Also:
Constant Field Values

FORCE_FLAG

public static final boolean FORCE_FLAG
force a rewrite of the framework configuration files. always true

See Also:
Constant Field Values

TEMPLATE_RESOURCES_PATH

public static final java.lang.String TEMPLATE_RESOURCES_PATH
See Also:
Constant Field Values
Constructor Detail

Setup

public Setup()
default constructor

Method Detail

main

public static void main(java.lang.String[] args)
called from setup shell/bat script. Calls the execute(java.lang.String[]) method.


execute

public void execute(java.lang.String[] args)
             throws Setup.SetupException
Validates the install, generates preference data and then invokes the adminCmd.xml

Parameters:
args - Command line args
Throws:
Setup.SetupException - thrown if error

performSetup

public void performSetup()
                  throws Setup.SetupException
Throws:
Setup.SetupException

printUsage

public static void printUsage()

log

public void log(java.lang.String message)
Description copied from interface: BaseLogger
Logs message via implementation specific log facility

Specified by:
log in interface BaseLogger
Parameters:
message - message to log

error

public void error(java.lang.String message)
Description copied from interface: BaseLogger
Logs error message via implementation specific log facility

Specified by:
error in interface BaseLogger
Parameters:
message - message to log

warn

public void warn(java.lang.String message)
Description copied from interface: BaseLogger
Logs warning message via implementation specific log facility

Specified by:
warn in interface BaseLogger
Parameters:
message - message to log

verbose

public void verbose(java.lang.String message)
Description copied from interface: BaseLogger
Logs verbose message via implementation specific log facility

Specified by:
verbose in interface BaseLogger
Parameters:
message - message to log

debug

public void debug(java.lang.String message)
Description copied from interface: BaseLogger
Logs debug message via implementation specific log facility

Specified by:
debug in interface BaseLogger
Parameters:
message - message to log

getParameters

public Setup.Parameters getParameters()