Package org.oddjob

Class Main

java.lang.Object
org.oddjob.Main

public class Main extends Object
This is a very simple wrapper around Oddjob with a main method.
Author:
Rob Gordon
  • Field Details

  • Constructor Details

    • Main

      public Main()
  • Method Details

    • init

      public Supplier<Try<Oddjob>> init(String[] args) throws IOException
      Parse the command args and configure Oddjob.
      Parameters:
      args - The args.
      Returns:
      A configured and ready to run Oddjob.
      Throws:
      FileNotFoundException
      IOException
    • configureLog

      public void configureLog(String logConfigFileName)
      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

      public static Properties loadUserProperties() throws IOException
      Process the properties in oddjob.properties in the users home directory.
      Returns:
      The properties. Null if there aren't any.
      Throws:
      IOException
    • main

      public static void main(String[] args) throws Exception
      The main.
      Parameters:
      args - The command line args.
      Throws:
      FileNotFoundException
      Exception
    • stop

      public static void stop() throws Exception
      Throws:
      Exception