Package com.sun.javatest.tool
Class Main
java.lang.Object
com.sun.javatest.tool.Main
The main program class for JT Harness.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Thrown when a bad command line argument is encountered. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
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. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Run JT Harness with command-line args.final void
run
(String[] args, CommandContext ctx) A routine to run JT Harness.final void
run
(String[] args, PrintWriter out) The main routine to run JT Harness.
-
Field Details
-
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:
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
Run JT Harness with command-line args.- Parameters:
args
- Arguments, per the command-line spec
-
run
public final void run(String[] args, PrintWriter out) throws Main.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 harnessCommandContext.Fault
- if there is a problem executing a commandCommandParser.Fault
- if there is a problem parsing the args
-
run
public final void run(String[] args, CommandContext ctx) throws Main.Fault, CommandContext.Fault, CommandParser.Fault A 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
-