|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.process.ExternalProcessBuilder
public final class ExternalProcessBuilder
Builder to create ExternalProcess
s using the ProcessService
Constructor Summary | |
---|---|
ExternalProcessBuilder()
|
Method Summary | |
---|---|
ExternalProcessBuilder |
command(java.util.List<java.lang.String> command)
|
ExternalProcessBuilder |
commandFromString(java.lang.String commandString)
Splits the given command string into arguments and adds them to the builder |
ExternalProcessBuilder |
env(java.util.Map<java.lang.String,java.lang.String> env)
Adds env variables. |
ExternalProcessBuilder |
env(java.lang.String key,
java.lang.String value)
Adds env variable. |
java.util.List<java.lang.String> |
getCommand()
|
java.util.Map<java.lang.String,java.lang.String> |
getEnv()
|
java.util.List<java.lang.String> |
getPaths()
|
java.io.File |
getWorkingDirectory()
|
ExternalProcessBuilder |
path(java.util.List<java.lang.String> path)
|
ExternalProcessBuilder |
path(java.lang.String path)
|
ExternalProcessBuilder |
workingDirectory(java.io.File workingDirectory)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExternalProcessBuilder()
Method Detail |
---|
public ExternalProcessBuilder path(@NotNull java.lang.String path)
public ExternalProcessBuilder path(@NotNull java.util.List<java.lang.String> path)
public ExternalProcessBuilder command(@NotNull java.util.List<java.lang.String> command)
public ExternalProcessBuilder commandFromString(@NotNull java.lang.String commandString)
commandString
- to split into multiple parts and add to the list of commands
public ExternalProcessBuilder env(@NotNull java.util.Map<java.lang.String,java.lang.String> env)
env
- key -> value map of environment variables to add
public ExternalProcessBuilder env(@NotNull java.lang.String key, @NotNull java.lang.String value)
key
- name of environment variablevalue
- value of environment variable
public ExternalProcessBuilder workingDirectory(@NotNull java.io.File workingDirectory)
public java.util.List<java.lang.String> getPaths()
public java.util.List<java.lang.String> getCommand()
public java.io.File getWorkingDirectory()
public java.util.Map<java.lang.String,java.lang.String> getEnv()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |