@PublicApi public final class ExternalProcessBuilder extends Object
ExternalProcess
s using the ProcessService
Constructor and Description |
---|
ExternalProcessBuilder() |
public ExternalProcessBuilder path(@NotNull String path)
public ExternalProcessBuilder path(@NotNull List<String> path)
public ExternalProcessBuilder command(@NotNull List<String> command)
public ExternalProcessBuilder commandFromString(@NotNull String commandString)
commandString
- to split into multiple parts and add to the list of commandspublic ExternalProcessBuilder env(@NotNull Map<String,String> env)
env
- key -> value map of environment variables to addpublic ExternalProcessBuilder env(@NotNull String key, @NotNull String value)
key
- name of environment variablevalue
- value of environment variablepublic ExternalProcessBuilder workingDirectory(@NotNull File workingDirectory)
public ExternalProcessBuilder runWithPowershell(boolean runWithPowershell)
public ExternalProcessBuilder setBackgroundProcess(boolean value)
public ExternalProcessBuilder setCompletionCallback(@Nullable Runnable completionCallback)
public boolean isBackgroundProcess()
@Nullable public String getCommandExecutable()
public File getWorkingDirectory()
public boolean isRunWithPowershell()
public void dockerContainerId(String dockerContainer)
public String getDockerContainerId()
public boolean isUseWindowsBatFilesForWhitespaceHandling()
public ExternalProcessBuilder setUseWindowsBatFilesForWhitespaceHandling(boolean useWindowsBatFilesForWhitespaceHandling)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.