jetbrains.buildServer.agent.runner
Class JavaCommandLineBuilder

java.lang.Object
  extended by jetbrains.buildServer.agent.runner.JavaCommandLineBuilder

public class JavaCommandLineBuilder
extends java.lang.Object

Author:
Pavel.Sher

Field Summary
static com.intellij.openapi.diagnostic.Logger LOG
           
 
Constructor Summary
JavaCommandLineBuilder()
           
 
Method Summary
 void addProgramArg(java.lang.String arg)
           
 void addSystemProperty(java.lang.String name, java.lang.String value)
           
 ProgramCommandLine build()
           
 java.lang.String getActualBaseDir()
           
 void setBaseDir(java.lang.String baseDir)
           
 void setBootClassPath(java.lang.String bootClassPath)
           
 void setClassPath(java.lang.String classPath)
           
 void setEnvVariables(java.util.Map<java.lang.String,java.lang.String> vars)
           
 void setJavaHome(java.lang.String javaHome)
           
 void setJvmArgs(java.util.List<java.lang.String> jvmArgs)
           
 void setMainClass(java.lang.String mainClass)
           
 void setProgramArgs(java.util.List<java.lang.String> programArgs)
           
 void setSystemProperties(java.util.Map<java.lang.String,java.lang.String> props)
           
 void setWorkingDir(java.lang.String workingDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final com.intellij.openapi.diagnostic.Logger LOG
Constructor Detail

JavaCommandLineBuilder

public JavaCommandLineBuilder()
Method Detail

setJavaHome

public void setJavaHome(@Nullable
                        java.lang.String javaHome)

setSystemProperties

public void setSystemProperties(@NotNull
                                java.util.Map<java.lang.String,java.lang.String> props)

addSystemProperty

public void addSystemProperty(@NotNull
                              java.lang.String name,
                              @NotNull
                              java.lang.String value)

setEnvVariables

public void setEnvVariables(@NotNull
                            java.util.Map<java.lang.String,java.lang.String> vars)

setWorkingDir

public void setWorkingDir(@NotNull
                          java.lang.String workingDir)

setBaseDir

public void setBaseDir(@NotNull
                       java.lang.String baseDir)

setBootClassPath

public void setBootClassPath(@Nullable
                             java.lang.String bootClassPath)

setClassPath

public void setClassPath(@Nullable
                         java.lang.String classPath)

setMainClass

public void setMainClass(@NotNull
                         java.lang.String mainClass)

setJvmArgs

public void setJvmArgs(java.util.List<java.lang.String> jvmArgs)

setProgramArgs

public void setProgramArgs(java.util.List<java.lang.String> programArgs)

addProgramArg

public void addProgramArg(@NotNull
                          java.lang.String arg)

build

@NotNull
public ProgramCommandLine build()
                         throws CannotBuildCommandLineException
Throws:
CannotBuildCommandLineException

getActualBaseDir

public java.lang.String getActualBaseDir()