| Package | Description |
|---|---|
| org.sonar.api.utils.command |
| Modifier and Type | Method and Description |
|---|---|
Command |
Command.addArgument(String arg) |
Command |
Command.addArguments(List<String> args) |
Command |
Command.addArguments(String[] args) |
Command |
Command.addMaskedArgument(String arg) |
static Command |
Command.create(String executable)
Create a command line without any arguments
|
Command |
CommandException.getCommand() |
Command |
Command.setDirectory(File d)
Sets working directory.
|
Command |
Command.setEnvironmentVariable(String name,
String value) |
Command |
Command.setNewShell(boolean b)
Set to
true if a new shell should be used to execute the command. |
| Modifier and Type | Method and Description |
|---|---|
int |
CommandExecutor.execute(Command command,
long timeoutMilliseconds)
Execute command and display error and output streams in log.
|
int |
CommandExecutor.execute(Command command,
StreamConsumer stdOut,
StreamConsumer stdErr,
long timeoutMilliseconds) |
| Constructor and Description |
|---|
CommandException(Command command,
String message,
Throwable throwable) |
CommandException(Command command,
Throwable throwable) |
TimeoutException(Command command,
String message,
Throwable throwable) |
Copyright © 2009–2017 SonarSource. All rights reserved.