com.atlassian.bamboo.v2.build.agent.remote
Class RemoteBuildDirectoryManager

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.agent.remote.RemoteBuildDirectoryManager
All Implemented Interfaces:
BuildDirectoryManager

public class RemoteBuildDirectoryManager
extends java.lang.Object
implements BuildDirectoryManager


Field Summary
static java.lang.String BUILD_WORKING_DIRECTORY_KEY
           
static java.lang.String DEFAULT_BUILD_WORKING_DIRECTORY
           
 
Constructor Summary
RemoteBuildDirectoryManager()
           
 
Method Summary
 java.lang.String getAgentPathPrefix(ExecutableBuildAgent buildAgent)
           
 java.io.File getApplicationHome()
          Returns application's/agent's home directory.
 java.io.File getBaseBuildWorkingDirectory()
           
 java.io.File getBuildWorkingDirectory(Key key)
          Returns the working directory for the plan.
 java.io.File getServerSideTaskWorkingDirectory(ResultKey resultKey)
          Returns the directory used by server-side tasks, e.g.
 java.io.File getWorkingDirectoryOfCurrentAgent()
           
 void setAgentConfiguration(AgentConfiguration agentConfiguration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUILD_WORKING_DIRECTORY_KEY

public static final java.lang.String BUILD_WORKING_DIRECTORY_KEY
See Also:
Constant Field Values

DEFAULT_BUILD_WORKING_DIRECTORY

public static final java.lang.String DEFAULT_BUILD_WORKING_DIRECTORY
Constructor Detail

RemoteBuildDirectoryManager

public RemoteBuildDirectoryManager()
Method Detail

getWorkingDirectoryOfCurrentAgent

public java.io.File getWorkingDirectoryOfCurrentAgent()
Specified by:
getWorkingDirectoryOfCurrentAgent in interface BuildDirectoryManager

getBaseBuildWorkingDirectory

public java.io.File getBaseBuildWorkingDirectory()
Specified by:
getBaseBuildWorkingDirectory in interface BuildDirectoryManager

getBuildWorkingDirectory

@NotNull
public java.io.File getBuildWorkingDirectory(@NotNull
                                                     Key key)
Description copied from interface: BuildDirectoryManager
Returns the working directory for the plan.

Specified by:
getBuildWorkingDirectory in interface BuildDirectoryManager

getApplicationHome

public java.io.File getApplicationHome()
Description copied from interface: BuildDirectoryManager
Returns application's/agent's home directory.

Specified by:
getApplicationHome in interface BuildDirectoryManager
Returns:
Application's/agent's home directory

getAgentPathPrefix

public java.lang.String getAgentPathPrefix(ExecutableBuildAgent buildAgent)
Specified by:
getAgentPathPrefix in interface BuildDirectoryManager

setAgentConfiguration

public void setAgentConfiguration(AgentConfiguration agentConfiguration)

getServerSideTaskWorkingDirectory

@NotNull
public java.io.File getServerSideTaskWorkingDirectory(@NotNull
                                                              ResultKey resultKey)
Description copied from interface: BuildDirectoryManager
Returns the directory used by server-side tasks, e.g. pre/post build merge & commit

Specified by:
getServerSideTaskWorkingDirectory in interface BuildDirectoryManager


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.