public final class SimpleCommandLine extends Object
-Dlogback.configurationFile=/path/to/logback.xml
JVM configuration option.
This CLI is not terribly robust nor does it really offer much in the way of features. It's mostly meant for testing
purposes and will be replaced before the 1.0 release of the software.| Modifier and Type | Field and Description |
|---|---|
private static Logger |
log
Class logger.
|
static int |
RC_INIT
Return code indicating an initialization error, 1 .
|
static int |
RC_IO
Return code indicating an error reading files, 2 .
|
static int |
RC_OK
Return code indicating command completed successfully, 0 .
|
static int |
RC_UNKNOWN
Return code indicating an unknown error occurred, -1 .
|
| Modifier | Constructor and Description |
|---|---|
private |
SimpleCommandLine()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
initLogging(SimpleCommandLineArguments cli)
Initialize the logging subsystem.
|
static void |
main(String[] args)
Main method.
|
public static final int RC_OK
public static final int RC_INIT
public static final int RC_IO
public static final int RC_UNKNOWN
private static Logger log
public static void main(String[] args)
args - command line argumentsprotected static void initLogging(SimpleCommandLineArguments cli)
cli - command line argumentsCopyright © 1999–2016. All rights reserved.