public class BashStep extends ShellStep
ShellStep should be preferred. BashCommand should be reserved for
cases where the expressiveness of Bash (often in the form of *-shell-expansion) makes the command
considerably easier to implement.workingDirectory| Constructor and Description |
|---|
BashStep(AbsPath workingDirectory,
String... bashCommand) |
BashStep(Path workingDirectory,
String... bashCommand) |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.common.collect.ImmutableList<String> |
getShellCommandInternal(ExecutionContext context)
Implementations of this method should not have any observable side-effects.
|
String |
getShortName() |
addOptions, execute, getDescription, getDuration, getEnvironmentVariables, getExitCodeFromResult, getShellCommand, getShellCommandArgsForDescription, getStderr, getStdin, getStdout, getTimeout, getTimeoutHandler, shouldPrintStderr, shouldPrintStdoutpublic BashStep(Path workingDirectory, String... bashCommand)
bashCommand - command to execute. For convenience, multiple arguments are supported and
will be joined with space characters if more than one is present.public String getShortName()
protected com.google.common.collect.ImmutableList<String> getShellCommandInternal(ExecutionContext context)
ShellStepgetShellCommandInternal in class ShellStep