| Modifier and Type | Method and Description | 
|---|---|
| Command | addArgument(String arg) | 
| Command | addArguments(List<String> args) | 
| Command | addArguments(String[] args) | 
| Command | addMaskedArgument(String arg) | 
| static Command | create(String executable)Create a command line without any arguments | 
| List<String> | getArguments() | 
| File | getDirectory() | 
| Map<String,String> | getEnvironmentVariables()Environment variables that are propagated during command execution. | 
| String | getExecutable() | 
| boolean | isNewShell()trueif a new shell should be used to execute the command. | 
| Command | setDirectory(File d)Sets working directory. | 
| Command | setEnvironmentVariable(String name,
                      String value) | 
| Command | setNewShell(boolean b)Set to  trueif a new shell should be used to execute the command. | 
| String | toCommandLine() | 
| String | toString() | 
public static Command create(String executable)
executable - public String getExecutable()
public List<String> getArguments()
public Command addArgument(String arg)
public Command addMaskedArgument(String arg)
public Command addArguments(List<String> args)
public Command addArguments(String[] args)
public File getDirectory()
public Command setDirectory(File d)
public Command setEnvironmentVariable(String name, String value)
getEnvironmentVariables()public Map<String,String> getEnvironmentVariables()
public boolean isNewShell()
true if a new shell should be used to execute the command.
 The default behavior is to not use a new shell.public Command setNewShell(boolean b)
true if a new shell should be used to execute the command.
 This is useful when the executed command is a script with no execution rights (+x on unix).
 On windows, the command will be executed with cmd /C executable.
 On other platforms, the command will be executed with sh executable.public String toCommandLine()
Copyright © 2009–2016 SonarSource. All rights reserved.