Class Main


  • public class Main
    extends java.lang.Object
    The main program class for JT Harness.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Main.Fault
      Thrown when a bad command line argument is encountered.
    • Constructor Summary

      Constructors 
      Constructor Description
      Main()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Run JT Harness with command-line args.
      void run​(java.lang.String[] args, CommandContext ctx)
      A routine to run JT Harness.
      void run​(java.lang.String[] args, java.io.PrintWriter out)
      The main routine to run JT Harness.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Main

        public Main()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Run JT Harness with command-line args.
        Parameters:
        args - Arguments, per the command-line spec
      • run

        public final void run​(java.lang.String[] args,
                              java.io.PrintWriter out)
                       throws Main.Fault,
                              Command.Fault,
                              CommandContext.Fault,
                              CommandParser.Fault
        The main routine to run JT Harness.
        Parameters:
        args - Arguments for JT Harness, per the command-line spec.
        out - A stream to which to write standard messages, such as command-line help, version info etc. Some error messages will still be sent to System.err.
        Throws:
        Main.Fault - if there is a problem initializing the harness
        Command.Fault - if there is a problem with a command's arguments
        CommandContext.Fault - if there is a problem executing a command
        CommandParser.Fault - if there is a problem parsing the args