|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.task.TaskContextImpl
public class TaskContextImpl
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 |
BuildLogger |
getBuildLogger()
Returns the appropriate logger for the task |
ConfigurationMap |
getConfigurationMap()
A Map of String values from TaskDefinition.getConfiguration() where the values have gone through
variable substitution through CustomVariableContext#substituteString() . |
long |
getId()
|
java.lang.String |
getPluginKey()
|
java.io.File |
getRootDirectory()
Get build root directory (where sources were checked out) |
java.lang.String |
getUserDescription()
|
java.io.File |
getWorkingDirectory()
Get build working directory (where task should be executed). |
boolean |
isFinalising()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaskContextImpl(java.util.Map<java.lang.String,java.lang.String> substitutedConfiguration, TaskExecutionContext taskExecutionContext, TaskDefinition taskDefinition)
Method Detail |
---|
public long getId()
getId
in interface TaskIdentifier
Job
@NotNull public java.lang.String getPluginKey()
getPluginKey
in interface TaskIdentifier
public java.lang.String getUserDescription()
getUserDescription
in interface TaskIdentifier
public boolean isFinalising()
isFinalising
in interface TaskIdentifier
@NotNull public BuildContext getBuildContext()
TaskContext
getBuildContext
in interface TaskContext
@NotNull public BuildLogger getBuildLogger()
TaskContext
getBuildLogger
in interface TaskContext
@NotNull public java.io.File getRootDirectory()
TaskContext
getRootDirectory
in interface TaskContext
@NotNull public java.io.File getWorkingDirectory()
TaskContext
TaskConfigConstants.CFG_WORKING_SUB_DIRECTORY
key in the TaskConfiguration
if such key exists and has not empty value then working directory would be getRootDirectory() + value of
TaskConfigConstants.CFG_WORKING_SUB_DIRECTORY
key.
getWorkingDirectory
in interface TaskContext
@NotNull public ConfigurationMap getConfigurationMap()
TaskContext
Map
of String
values from TaskDefinition.getConfiguration()
where the values have gone through
variable substitution through CustomVariableContext#substituteString()
. All ${bamboo.*} and ${system.*} params are
substituted.
getConfigurationMap
in interface TaskContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |