jetbrains.buildServer.agent.runner
Class BuildServiceAdapter

java.lang.Object
  extended by jetbrains.buildServer.agent.runner.CommandLineBuildService
      extended by jetbrains.buildServer.agent.runner.BuildServiceAdapter

public abstract class BuildServiceAdapter
extends CommandLineBuildService

Extends CommandLineBuildService interface. Adds some methods for quicker access to BuildRunnerContext and AgentRunningBuild data.

Since:
6.0

Constructor Summary
BuildServiceAdapter()
           
 
Method Summary
protected  ProgramCommandLine createProgramCommandline(java.lang.String file, java.util.List<java.lang.String> args)
           
 BuildAgentConfiguration getAgentConfiguration()
           
 java.io.File getAgentTempDirectory()
           
protected  BuildParametersMap getBuildParameters()
           
 java.io.File getBuildTempDirectory()
           
protected  java.io.File getCheckoutDirectory()
           
protected  java.util.Map<java.lang.String,java.lang.String> getConfigParameters()
           
protected  java.util.Map<java.lang.String,java.lang.String> getEnvironmentVariables()
           
protected  java.util.Map<java.lang.String,java.lang.String> getRunnerParameters()
           
protected  java.util.Map<java.lang.String,java.lang.String> getSystemProperties()
           
 java.lang.String getToolPath(java.lang.String toolName)
          Returns path to a tool with given name
protected  java.io.File getWorkingDirectory()
           
 
Methods inherited from class jetbrains.buildServer.agent.runner.CommandLineBuildService
afterInitialized, afterProcessFinished, afterProcessSuccessfullyFinished, beforeProcessStarted, getBuild, getListeners, getLogger, getRunnerContext, getRunResult, initialize, interrupt, isCommandLineLoggingEnabled, makeProgramCommandLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildServiceAdapter

public BuildServiceAdapter()
Method Detail

getBuildParameters

@NotNull
protected final BuildParametersMap getBuildParameters()

getConfigParameters

@NotNull
protected final java.util.Map<java.lang.String,java.lang.String> getConfigParameters()

getSystemProperties

@NotNull
protected final java.util.Map<java.lang.String,java.lang.String> getSystemProperties()

getEnvironmentVariables

@NotNull
protected final java.util.Map<java.lang.String,java.lang.String> getEnvironmentVariables()

getRunnerParameters

@NotNull
protected final java.util.Map<java.lang.String,java.lang.String> getRunnerParameters()

getCheckoutDirectory

@NotNull
protected final java.io.File getCheckoutDirectory()

getWorkingDirectory

@NotNull
protected final java.io.File getWorkingDirectory()

createProgramCommandline

@NotNull
protected final ProgramCommandLine createProgramCommandline(@NotNull
                                                                    java.lang.String file,
                                                                    @NotNull
                                                                    java.util.List<java.lang.String> args)

getToolPath

@NotNull
public final java.lang.String getToolPath(@NotNull
                                                  java.lang.String toolName)
                                   throws ToolCannotBeFoundException
Returns path to a tool with given name

Parameters:
toolName - name of the tool
Returns:
path to a tool on the filesystem
Throws:
ToolCannotBeFoundException - if path to a tool can't be located
Since:
6.0

getBuildTempDirectory

@NotNull
public final java.io.File getBuildTempDirectory()
Returns:
Temp directory that will be set as temp directory for runner process
Since:
6.0

getAgentTempDirectory

@NotNull
public final java.io.File getAgentTempDirectory()
Returns:
temp directory for runner specific files
Since:
6.0

getAgentConfiguration

@NotNull
public final BuildAgentConfiguration getAgentConfiguration()
Returns:
build agent configuration
Since:
6.0