com.atlassian.bamboo.process
Class ExternalProcessBuilder

java.lang.Object
  extended by com.atlassian.bamboo.process.ExternalProcessBuilder

public final class ExternalProcessBuilder
extends java.lang.Object

Builder to create ExternalProcesss using the ProcessService

Since:
3.1

Constructor Summary
ExternalProcessBuilder()
           
 
Method Summary
 ExternalProcessBuilder command(java.util.List<java.lang.String> command)
           
 ExternalProcessBuilder env(java.util.Map<java.lang.String,java.lang.String> env)
           
 ExternalProcessBuilder env(java.lang.String key, java.lang.String value)
           
 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

ExternalProcessBuilder

public ExternalProcessBuilder()
Method Detail

path

public ExternalProcessBuilder path(@NotNull
                                   java.lang.String path)

path

public ExternalProcessBuilder path(@NotNull
                                   java.util.List<java.lang.String> path)

command

public ExternalProcessBuilder command(@NotNull
                                      java.util.List<java.lang.String> command)

env

public ExternalProcessBuilder env(@NotNull
                                  java.util.Map<java.lang.String,java.lang.String> env)

env

public ExternalProcessBuilder env(@NotNull
                                  java.lang.String key,
                                  @NotNull
                                  java.lang.String value)

workingDirectory

public ExternalProcessBuilder workingDirectory(@NotNull
                                               java.io.File workingDirectory)

getPaths

public java.util.List<java.lang.String> getPaths()

getCommand

public java.util.List<java.lang.String> getCommand()

getWorkingDirectory

public java.io.File getWorkingDirectory()

getEnv

public java.util.Map<java.lang.String,java.lang.String> getEnv()


Copyright © 2011 Atlassian. All Rights Reserved.