Package org.oddjob
Class Main
java.lang.Object
org.oddjob.Main
This is a very simple wrapper around Oddjob with a main method.
- Author:
- Rob Gordon
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureLog(String logConfigFileName) Configure logging from a log file.Parse the command args and configure Oddjob.static PropertiesProcess the properties in oddjob.properties in the users home directory.static voidThe main.static voidstop()voidusage()Display usage info.voidversion()Display version info.
-
Field Details
-
USER_PROPERTIES
- See Also:
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
init
Parse the command args and configure Oddjob.- Parameters:
args- The args.- Returns:
- A configured and ready to run Oddjob.
- Throws:
FileNotFoundExceptionIOException
-
configureLog
Configure logging from a log file.- Parameters:
logConfigFileName- The log file name.
-
usage
public void usage()Display usage info. -
version
public void version()Display version info. -
loadUserProperties
Process the properties in oddjob.properties in the users home directory.- Returns:
- The properties. Null if there aren't any.
- Throws:
IOException
-
main
The main.- Parameters:
args- The command line args.- Throws:
FileNotFoundExceptionException
-
stop
- Throws:
Exception
-