public class Main
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
USER_PROPERTIES |
Constructor and Description |
---|
Main() |
Modifier and Type | Method and Description |
---|---|
void |
configureLog(java.lang.String logConfigFileName)
Configure logging from a log file.
|
java.util.function.Supplier<Try<Oddjob>> |
init(java.lang.String[] args)
Parse the command args and configure Oddjob.
|
static void |
main(java.lang.String[] args)
The main.
|
protected java.util.Properties |
processUserProperties()
Process the properties in oddjob.properties in the users
home directory.
|
void |
usage()
Display usage info.
|
void |
version()
Display version info.
|
public static final java.lang.String USER_PROPERTIES
public java.util.function.Supplier<Try<Oddjob>> init(java.lang.String[] args) throws java.io.IOException
args
- The args.java.io.FileNotFoundException
java.io.IOException
public void configureLog(java.lang.String logConfigFileName)
logConfigFileName
- The log file name.public void usage()
public void version()
protected java.util.Properties processUserProperties() throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- The command line args.java.io.FileNotFoundException
java.lang.Exception