public static class CommandTool.Builder extends Object
Constructor and Description |
---|
Builder() |
Builder(Optional<Tool> baseTool) |
Builder(Tool baseTool) |
Modifier and Type | Method and Description |
---|---|
CommandTool.Builder |
addArg(Arg arg)
Adds an argument.
|
CommandTool.Builder |
addArg(String arg) |
CommandTool.Builder |
addEnv(String key,
Arg arg)
Adds an environment variable key=arg.
|
CommandTool.Builder |
addEnv(String key,
String val) |
CommandTool.Builder |
addInput(SourcePath... inputs) |
CommandTool.Builder |
addInputs(Iterable<? extends SourcePath> inputs)
Adds additional non-argument inputs to the tool.
|
CommandTool.Builder |
addNonHashableInput(SourcePath input) |
CommandTool |
build() |
public Builder(Tool baseTool)
public Builder()
public CommandTool.Builder addArg(Arg arg)
public CommandTool.Builder addArg(String arg)
public CommandTool.Builder addEnv(String key, Arg arg)
public CommandTool.Builder addEnv(String key, String val)
public CommandTool.Builder addInputs(Iterable<? extends SourcePath> inputs)
public CommandTool.Builder addInput(SourcePath... inputs)
public CommandTool.Builder addNonHashableInput(SourcePath input)
public CommandTool build()