com.atlassian.bamboo.v2.build.task
Class CheckoutUpdateForBuild

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.task.AbstractBuildTask
      extended by com.atlassian.bamboo.v2.build.task.CheckoutUpdateForBuild
All Implemented Interfaces:
AgentBuildTask, BuildTask, InterruptibleBuildTask, java.util.concurrent.Callable<BuildContext>

public class CheckoutUpdateForBuild
extends AbstractBuildTask
implements AgentBuildTask, InterruptibleBuildTask

A task that updates the build to the latest version to be run


Field Summary
 
Fields inherited from class com.atlassian.bamboo.v2.build.task.AbstractBuildTask
buildContext
 
Constructor Summary
CheckoutUpdateForBuild()
           
 
Method Summary
 BuildContext call()
          Execute the build task.
protected  boolean isDirectoryImportant(java.io.File planSourceDirectory)
          Checks a path against a defined list of directories to see if it is important (and should not be deleted)
 void setBuildExecutionUpdateManager(BuildExecutionUpdateManager buildExecutionUpdateManager)
           
 void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
           
 
Methods inherited from class com.atlassian.bamboo.v2.build.task.AbstractBuildTask
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.v2.build.task.BuildTask
init
 

Constructor Detail

CheckoutUpdateForBuild

public CheckoutUpdateForBuild()
Method Detail

call

@NotNull
public BuildContext call()
                  throws RepositoryException
Description copied from interface: BuildTask

Execute the build task.

Implementations should regularly check if the calling Thread has been interrupted.

Specified by:
call in interface BuildTask
Specified by:
call in interface java.util.concurrent.Callable<BuildContext>
Throws:
RepositoryException

isDirectoryImportant

protected boolean isDirectoryImportant(java.io.File planSourceDirectory)
Checks a path against a defined list of directories to see if it is important (and should not be deleted)

Parameters:
planSourceDirectory -
Returns:

setBuildLoggerManager

public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)

setBuildExecutionUpdateManager

public void setBuildExecutionUpdateManager(BuildExecutionUpdateManager buildExecutionUpdateManager)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.