| Modifier and Type | Field and Description | 
|---|---|
protected ExecutionContext | 
executionContext
The execution context of the command. 
 | 
protected PrintStream | 
out
The  
PrintStream that the command can use to write on the console. | 
protected List<String> | 
systemProperties  | 
| Constructor and Description | 
|---|
DefaultCommand()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
applySystemProperties()
Sets the system properties specified by the user command line. 
 | 
File | 
getCwd()  | 
PrintStream | 
out()  | 
void | 
setCwd(File cwd)
Sets the current working directory. 
 | 
void | 
setSystemProps(List<String> props)
Gets system properties passed in the user command line. 
 | 
void | 
setUp(ExecutionContext ec)
Set up the command execution environment. 
 | 
void | 
tearDown()
The command has been executed. 
 | 
protected ExecutionContext executionContext
protected PrintStream out
PrintStream that the command can use to write on the console.public File getCwd()
public void setCwd(File cwd)
--cwd=the-directory.cwd - the directorypublic void setSystemProps(List<String> props)
-Dkey=value.props - the propertiespublic void setUp(ExecutionContext ec) throws CLIException
CommandsetUp in interface Commandec - the contextCLIException - if the validation failedpublic PrintStream out()
public void tearDown()
              throws CLIException
CommandtearDown in interface CommandCLIException - if anything went wrongprotected void applySystemProperties()
Copyright © 2020 Eclipse. All rights reserved.