public class Launcher
extends java.lang.Object
This class is provided as an option in case the filesystem is packaged as a single JAR file. In this case, this class provides a single entry point and a convenient way to run any of the utilities provided for accessing the filesystem.
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,Application> |
applications
Map from application names to application objects for individual
applications.
|
static int |
EXIT_FAILURE
Exit status indicating failure.
|
Constructor and Description |
---|
Launcher() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] arguments)
Main entry point.
|
private static void |
usage()
Prints a help message and terminates the application.
|
public static final int EXIT_FAILURE
private static java.util.Map<java.lang.String,Application> applications
public static void main(java.lang.String[] arguments)
arguments
- Command line arguments. The first argument should be
the name of the application to be run. Following
arguments are passed to the application.private static void usage()