Package com.sun.javatest.tool
Class Main
- java.lang.Object
-
- com.sun.javatest.tool.Main
-
public class Main extends java.lang.ObjectThe main program class for JT Harness.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMain.FaultThrown when a bad command line argument is encountered.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOMMAND_MANAGERS_TO_LOADIf this system property is defined then its value is expected to contain comma-separated list of CommandManager subclasses to load, which would be put in use instead of those contained in the dedicated file.
-
Constructor Summary
Constructors Constructor Description Main()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String... args)Run JT Harness with command-line args.voidrun(java.lang.String[] args, CommandContext ctx)A routine to run JT Harness.voidrun(java.lang.String[] args, java.io.PrintWriter out)The main routine to run JT Harness.
-
-
-
Field Detail
-
COMMAND_MANAGERS_TO_LOAD
public static final java.lang.String COMMAND_MANAGERS_TO_LOAD
If this system property is defined then its value is expected to contain comma-separated list of CommandManager subclasses to load, which would be put in use instead of those contained in the dedicated file.- See Also:
- Constant Field Values
-
-
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, CommandContext.Fault, CommandParser.FaultThe 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 harnessCommandContext.Fault- if there is a problem executing a commandCommandParser.Fault- if there is a problem parsing the args
-
run
public final void run(java.lang.String[] args, CommandContext ctx) throws Main.Fault, CommandContext.Fault, CommandParser.FaultA routine to run JT Harness.- Parameters:
args- Arguments for JT Harness, per the command-line spec.ctx- A context to use to execute the commands in the args- Throws:
CommandContext.Fault- if there is a problem executing a commandCommandParser.Fault- if there is a problem parsing the argsMain.Fault
-
-