public class Bootstrap extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
doPrintHelp()
Return true/false if help was requested.
|
static String |
getBootstrapApplication()
The the name of the CCS application to be launched.
|
static URLClassLoader |
getBootstrapApplicationClassLoader()
Get the classLoader for this application.
|
static Properties |
getBootstrapApplicationProperties()
Get the properties for the current CCS application.
|
protected org.apache.commons.cli.Options |
getBootstrapCommandLineOptions()
Get the bootstrap command line options.
|
static Properties |
getCmdLineProperties() |
static boolean |
isBootstrapEnvironment() |
static boolean |
isQuiet() |
static void |
main(String[] args) |
protected void |
parseCommandLineArguments(String[] args)
Parse the command line arguments and extract the needed information.
|
protected static void |
resetBootstrap() |
static boolean |
verbose()
Return true/false is verbose is turned on.
|
protected static void resetBootstrap()
public static Properties getBootstrapApplicationProperties()
protected void parseCommandLineArguments(String[] args) throws org.apache.commons.cli.ParseException
args - The command line arguments.fromMain - Indicates if the method is invoked from the main method,
i.e. if we are parsing the main cmd line. This method is invoked a second
time to extract additional system properties from the arguments passed to
the main class.org.apache.commons.cli.ParseException - if there are problems parsing the command line.public static Properties getCmdLineProperties()
public static String getBootstrapApplication()
public boolean doPrintHelp()
public static boolean verbose()
public static boolean isQuiet()
protected org.apache.commons.cli.Options getBootstrapCommandLineOptions()
public static URLClassLoader getBootstrapApplicationClassLoader()
public static boolean isBootstrapEnvironment()
Copyright © 2014 LSST. All Rights Reserved.