Modifier and Type | Method and Description |
---|---|
CommandBuilder |
addAll(Iterable<String> arguments)
Add all arguments to the command line.
|
CommandBuilder |
addArgument(String arg,
String... args)
Add new argument to the command line.
|
Command |
build()
Build the command line.
|
static CommandBuilder |
builder(String executable)
Get new builder.
|
public static CommandBuilder builder(String executable)
executable
- Executable value.NullPointerException
- If executable is null.IllegalArgumentException
- If executable is empty or blank.public CommandBuilder addArgument(String arg, String... args)
arg
- First argument.args
- Next optional arguments.NullPointerException
- If one of the arguments is null
.IllegalArgumentException
- If one of the arguments is empty or blank.public CommandBuilder addAll(Iterable<String> arguments)
arguments
- All arguments.NullPointerException
- If arguments is null
.IllegalArgumentException
- If arguments is empty.public Command build()
Copyright © 2015. All Rights Reserved.