Class EnvironmentManager
java.lang.Object
com.sun.javatest.tool.CommandManager
com.sun.javatest.tool.EnvironmentManager
A command manager to handle the command line options for adding
default values into every test environment.
The supported options are:
-EsysProps: add all the system properties into every environment-Ename=value: set name to value in every environment
-
Method Summary
Modifier and TypeMethodDescriptiongetHelp()Get an object embodying the command line help for the commands managed by this CommandManager.booleanparseCommand(String cmd, ListIterator<String> argIter, CommandContext ctx) Parse a command (and any arguments it might take).Methods inherited from class CommandManager
isMatch, isMatch, isPrefixMatch
-
Method Details
-
getHelp
Description copied from class:CommandManagerGet an object embodying the command line help for the commands managed by this CommandManager.- Specified by:
getHelpin classCommandManager- Returns:
- an object embodying the command line help for the commands managed by this CommandManager
-
parseCommand
Description copied from class:CommandManagerParse a command (and any arguments it might take).- Specified by:
parseCommandin classCommandManager- Parameters:
cmd- the command to be parsedargIter- an iterator from which to get any arguments that might be required by the optionctx- a context object to use while parsing the command- Returns:
- true if the command is recognized and successfully parsed, or false if the command is not recognized by this command manager
-