com.atlassian.bamboo.task
Class TaskContextImpl

java.lang.Object
  extended by com.atlassian.bamboo.task.CommonTaskContextImpl
      extended by com.atlassian.bamboo.task.TaskContextImpl
All Implemented Interfaces:
CommonTaskContext, InternalTaskContext, TaskContext, TaskIdentifier

public class TaskContextImpl
extends CommonTaskContextImpl
implements TaskContext


Field Summary
 
Fields inherited from class com.atlassian.bamboo.task.CommonTaskContextImpl
rootDirectorySelector, taskExecutionContext
 
Constructor Summary
TaskContextImpl(java.util.Map<java.lang.String,java.lang.String> substitutedConfiguration, TaskExecutionContext taskExecutionContext, TaskDefinition taskDefinition)
           
 
Method Summary
 BuildContext getBuildContext()
          Contains all the build related information about the running of the tasks
 java.io.File getRootDirectory()
          Get build root directory (where sources were checked out)
 
Methods inherited from class com.atlassian.bamboo.task.CommonTaskContextImpl
getBuildLogger, getCommonContext, getConfigurationMap, getId, getPluginKey, getRuntimeTaskContext, getUserDescription, getWorkingDirectory, isEnabled, isFinalising
 
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.task.TaskContext
getBuildLogger, getConfigurationMap, getRuntimeTaskContext, getWorkingDirectory
 
Methods inherited from interface com.atlassian.bamboo.task.CommonTaskContext
getCommonContext
 
Methods inherited from interface com.atlassian.bamboo.task.TaskIdentifier
getId, getPluginKey, getUserDescription, isEnabled, isFinalising
 

Constructor Detail

TaskContextImpl

public TaskContextImpl(java.util.Map<java.lang.String,java.lang.String> substitutedConfiguration,
                       TaskExecutionContext taskExecutionContext,
                       TaskDefinition taskDefinition)
Method Detail

getBuildContext

@NotNull
public BuildContext getBuildContext()
Description copied from interface: TaskContext
Contains all the build related information about the running of the tasks

Specified by:
getBuildContext in interface TaskContext
Overrides:
getBuildContext in class CommonTaskContextImpl
Returns:

getRootDirectory

@NotNull
public java.io.File getRootDirectory()
Description copied from interface: CommonTaskContext
Get build root directory (where sources were checked out)

Specified by:
getRootDirectory in interface CommonTaskContext
Specified by:
getRootDirectory in interface TaskContext
Overrides:
getRootDirectory in class CommonTaskContextImpl
Returns:
Build root directory


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