com.atlassian.bamboo.build.fileserver
Class DefaultBuildDirectoryManager

java.lang.Object
  extended by com.atlassian.bamboo.build.fileserver.DefaultBuildDirectoryManager
All Implemented Interfaces:
BuildDirectoryManager

public class DefaultBuildDirectoryManager
extends java.lang.Object
implements BuildDirectoryManager


Constructor Summary
DefaultBuildDirectoryManager()
           
 
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()
           
 java.io.File getBuildWorkingDirectory(PlanKey planKey)
          Returns the working directory for the plan.
 java.io.File getBuildWorkingDirectory(java.lang.String planKey)
          Deprecated. since 3.0 use getBuildWorkingDirectory(PlanKey)
 java.io.File getServerSideTaskWorkingDirectory(PlanResultKey planResultKey)
          Returns the directory used by server-side tasks, e.g.
 java.io.File getWorkingDirectoryOfCurrentAgent()
           
 void setAdministrationConfigurationManager(AdministrationConfigurationManager administrationConfigurationManager)
           
 void setAgentContext(AgentContext agentContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBuildDirectoryManager

public DefaultBuildDirectoryManager()
Method Detail

getBuildWorkingDirectory

@Deprecated
public java.io.File getBuildWorkingDirectory(java.lang.String planKey)
Deprecated. since 3.0 use getBuildWorkingDirectory(PlanKey)

Specified by:
getBuildWorkingDirectory in interface BuildDirectoryManager
Returns:

getBuildWorkingDirectory

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

Specified by:
getBuildWorkingDirectory in interface BuildDirectoryManager
Returns:

getWorkingDirectoryOfCurrentAgent

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

getBuildWorkingDirectory

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

getBaseBuildWorkingDirectory

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

setAgentContext

public void setAgentContext(AgentContext agentContext)

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

setAdministrationConfigurationManager

public void setAdministrationConfigurationManager(AdministrationConfigurationManager administrationConfigurationManager)

getServerSideTaskWorkingDirectory

@NotNull
public java.io.File getServerSideTaskWorkingDirectory(@NotNull
                                                              PlanResultKey planResultKey)
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
Returns:


Copyright © 2012 Atlassian. All Rights Reserved.