@Nonnull
B
|
argument(String argument)
|
@Nonnull
B
|
argumentAfter(String anchor, String argument)
Finds the index of the specified anchor and inserts the provided argument immediately after it
in the arguments .
|
@Nonnull
B
|
argumentAt(int index, String argument)
Inserts the provided argument at the specified index in the arguments , after ensuring
it is not blank .
|
@Nonnull
B
|
argumentBefore(String anchor, String argument)
Finds the index of the specified anchor and inserts the provided argument directly before it in
the arguments .
|
@Nonnull
B
|
clearArguments()
Clears the arguments , but does not null or replace the list instance.
|
@Nonnull
B
|
clearEnvironment()
Clears the environment , but does not null or replace the map instance.
|
@Nonnull
B
|
clearInputHandler()
|
@Nonnull
B
|
defaultErrorHandler()
|
@Nonnull
B
|
defaultExitHandler()
|
@Nonnull
B
|
defaultWorkingDirectory()
|
@Nonnull
File
|
directoryExists(File value)
Ensures the provided File is not null , exists and is a directory.
|
@Nullable
File
|
directoryExistsOrIsNull(File value)
Ensures the provided File is null , or that it exists and is a directory.
|
@Nonnull
B
|
errorHandler(CommandErrorHandler value)
Sets the provided value as the errorHandler to use for processing the standard error stream
when the built command is executed.
|
@Nonnull
B
|
exitHandler(CommandExitHandler value)
Sets the provided value as the exitHandler to be called when the built command exits or is
canceled.
|
@Nonnull
B
|
inputHandler(CommandInputHandler value)
Sets the provided value as the inputHandler to use for providing data on the standard input
stream when the built command is executed.
|
String
|
notBlank(String value, String name)
Ensures the provided value is not null , empty or blank.
|
@Nonnull
String
|
notBlank(String argument)
Ensures the provided argument is not null , empty or blank.
|
@Nonnull
B
|
rawArgument(String argument)
Appends the provided argument to the arguments , after ensuring it is not null .
|
@Nonnull
B
|
rawArgumentAfter(String anchor, String argument)
Finds the index of the specified anchor and inserts the provided argument immediately after it
in the arguments .
|
@Nonnull
B
|
rawArgumentAt(int index, String argument)
Inserts the provided argument at the specified index in the arguments , after ensuring
it is not blank .
|
@Nonnull
B
|
rawArgumentBefore(String anchor, String argument)
Finds the index of the specified anchor and inserts the provided argument directly before it in
the arguments .
|
@Nonnull
B
|
removeEnvironment(String name)
Clears the environment variable of the provided name if it has been set
|
abstract
B
|
self()
Returns a reference to the current builder, typed correctly to appease Java generics.
|
@Nonnull
B
|
withEnvironment(String name, String value)
Puts the provided value in the environment map with the specified name , after ensuring
both the name and value are not blank .
|
@Nonnull
B
|
workingDirectory(File value)
Sets the provided value as the workingDirectory to use when the built command is executed.
|
@Nonnull
B
|
workingDirectory(Path value)
Sets the provided value as the workingDirectory to use when the built command is executed.
|
@Nonnull
B
|
workingDirectory(String value)
Constructs a File from the provided value and sets it as the
working directory to use when the built command is executed.
|