com.sun.javatest.tool
public class Main extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Main.Fault
Thrown when a bad command line argument is encountered.
|
Constructor and Description |
---|
Main() |
Modifier and Type | Method and 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.
|
public static void main(java.lang.String[] args)
args
- Arguments, per the command-line specpublic final void run(java.lang.String[] args, java.io.PrintWriter out) throws Main.Fault, Command.Fault, CommandContext.Fault, CommandParser.Fault
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.Main.Fault
- if there is a problem initializing the harnessCommand.Fault
- if there is a problem with a command's argumentsCommandContext.Fault
- if there is a problem executing a commandCommandParser.Fault
- if there is a problem parsing the argspublic final void run(java.lang.String[] args, CommandContext ctx) throws Main.Fault, Command.Fault, CommandContext.Fault, CommandParser.Fault
args
- Arguments for JT Harness, per the command-line spec.ctx
- A context to use to execute the commands in the argsMain.Fault
- if there is a problem initializing the harnessCommand.Fault
- if there is a problem with a command's argumentsCommandContext.Fault
- if there is a problem executing a commandCommandParser.Fault
- if there is a problem parsing the argsCopyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.