Package com.atlassian.bamboo.process
Class ExternalProcessBuilder
java.lang.Object
com.atlassian.bamboo.process.ExternalProcessBuilder
Builder to create
ExternalProcess
s using the ProcessService
- Since:
- 3.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncommandFromString
(@NotNull String commandString) Splits the given command string into arguments and adds them to the builderdockerContainerId
(String dockerContainer) Adds env variable.Adds env variables.@Nullable String
getEnv()
@Nullable String
getInput()
getPaths()
Set the standard input to be passed to the spawned process.boolean
boolean
boolean
runWithPowershell
(boolean runWithPowershell) setBackgroundProcess
(boolean value) setCompletionCallback
(@Nullable Runnable completionCallback) setUseWindowsBatFilesForWhitespaceHandling
(boolean useWindowsBatFilesForWhitespaceHandling) workingDirectory
(@NotNull File workingDirectory)
-
Constructor Details
-
ExternalProcessBuilder
public ExternalProcessBuilder()
-
-
Method Details
-
path
-
path
-
command
-
commandFromString
Splits the given command string into arguments and adds them to the builder- Parameters:
commandString
- to split into multiple parts and add to the list of commands- Returns:
- builder
- Since:
- 3.1.4
-
env
Adds env variables. If variable name equals SystemProperty.PATH.getKey() the value is appended to the front of existing paths- Parameters:
env
- key -> value map of environment variables to add- Returns:
- builder
-
env
Adds env variable. If variable name equals SystemProperty.PATH.getKey() the value is appended to the front of existing paths.- Parameters:
key
- name of environment variablevalue
- value of environment variable- Returns:
- builder
-
input
Set the standard input to be passed to the spawned process. -
workingDirectory
-
runWithPowershell
-
setBackgroundProcess
-
getCompletionCallback
-
setCompletionCallback
public ExternalProcessBuilder setCompletionCallback(@Nullable @Nullable Runnable completionCallback) -
isBackgroundProcess
public boolean isBackgroundProcess() -
getCommandExecutable
-
getPaths
-
getCommand
-
getWorkingDirectory
-
getEnv
-
isRunWithPowershell
public boolean isRunWithPowershell() -
dockerContainerId
-
getDockerContainerId
-
isUseWindowsBatFilesForWhitespaceHandling
public boolean isUseWindowsBatFilesForWhitespaceHandling() -
setUseWindowsBatFilesForWhitespaceHandling
public ExternalProcessBuilder setUseWindowsBatFilesForWhitespaceHandling(boolean useWindowsBatFilesForWhitespaceHandling) -
getInput
-