|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.task.CommonTaskContextImpl
public class CommonTaskContextImpl
| Field Summary | |
|---|---|
protected TaskRootDirectorySelector |
rootDirectorySelector
|
protected TaskExecutionContext |
taskExecutionContext
|
| Constructor Summary | |
|---|---|
CommonTaskContextImpl(java.util.Map<java.lang.String,java.lang.String> substitutedConfiguration,
TaskExecutionContext taskExecutionContext,
TaskDefinition taskDefinition)
|
|
| Method Summary | |
|---|---|
CommonContext |
getBuildContext()
|
BuildLogger |
getBuildLogger()
Returns the appropriate logger for the task |
CommonContext |
getCommonContext()
Contains all the build related information about the running of the tasks |
ConfigurationMap |
getConfigurationMap()
A Map of String values from TaskDefinition.getConfiguration() where the values have gone
through variable substitution through CustomVariableContext.substituteString(String). |
long |
getId()
|
java.lang.String |
getPluginKey()
|
java.io.File |
getRootDirectory()
Get build root directory (where sources were checked out) |
java.util.Map<java.lang.String,java.lang.String> |
getRuntimeTaskContext()
|
java.lang.String |
getUserDescription()
|
java.io.File |
getWorkingDirectory()
Get build working directory (where task should be executed). |
boolean |
isEnabled()
|
boolean |
isFinalising()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final TaskRootDirectorySelector rootDirectorySelector
protected final TaskExecutionContext taskExecutionContext
| Constructor Detail |
|---|
public CommonTaskContextImpl(java.util.Map<java.lang.String,java.lang.String> substitutedConfiguration,
TaskExecutionContext taskExecutionContext,
TaskDefinition taskDefinition)
| Method Detail |
|---|
public long getId()
getId in interface TaskIdentifierJob@NotNull public java.lang.String getPluginKey()
getPluginKey in interface TaskIdentifierpublic java.lang.String getUserDescription()
getUserDescription in interface TaskIdentifierpublic boolean isEnabled()
isEnabled in interface TaskIdentifierpublic boolean isFinalising()
isFinalising in interface TaskIdentifier@NotNull public CommonContext getBuildContext()
@NotNull public CommonContext getCommonContext()
CommonTaskContext
getCommonContext in interface CommonTaskContext@NotNull public BuildLogger getBuildLogger()
CommonTaskContext
getBuildLogger in interface CommonTaskContext@NotNull public java.io.File getRootDirectory()
CommonTaskContext
getRootDirectory in interface CommonTaskContext@NotNull public java.io.File getWorkingDirectory()
CommonTaskContextTaskConfigConstants.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 CommonTaskContext@NotNull public ConfigurationMap getConfigurationMap()
CommonTaskContextMap of String values from TaskDefinition.getConfiguration() where the values have gone
through variable substitution through CustomVariableContext.substituteString(String). All ${bamboo.*} and
${system.*} params are substituted.
getConfigurationMap in interface CommonTaskContext@Nullable public java.util.Map<java.lang.String,java.lang.String> getRuntimeTaskContext()
getRuntimeTaskContext in interface CommonTaskContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||