Class AntTaskExporter
- java.lang.Object
-
- com.atlassian.bamboo.plugins.ant.export.AntTaskExporter
-
- All Implemented Interfaces:
TaskDefinitionExporter
public class AntTaskExporter extends Object implements TaskDefinitionExporter
-
-
Field Summary
Fields Modifier and Type Field Description static com.atlassian.bamboo.specs.api.validators.common.ValidationContext
ANT_CONTEXT
-
Constructor Summary
Constructors Constructor Description AntTaskExporter(UIConfigSupport uiConfigSupport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull com.atlassian.bamboo.specs.builders.task.AntTask
toSpecsEntity(@NotNull TaskDefinition taskDefinition)
Create Bamboo Specs object representing this task.@NotNull Map<String,String>
toTaskConfiguration(@NotNull TaskContainer taskContainer, @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
Converts properties to Bamboo task configuration.@NotNull List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem>
validate(@NotNull TaskValidationContext taskValidationContext, @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
Validates task properties in context of enclosing plan or deployment properties.-
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.export.TaskDefinitionExporter
fromYaml, toSpecsEntity, toTaskConfiguration, toTaskConfiguration, toYaml
-
-
-
-
Constructor Detail
-
AntTaskExporter
@Inject public AntTaskExporter(UIConfigSupport uiConfigSupport)
-
-
Method Detail
-
toTaskConfiguration
@NotNull public @NotNull Map<String,String> toTaskConfiguration(@NotNull @NotNull TaskContainer taskContainer, @NotNull @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
Description copied from interface:TaskDefinitionExporter
Converts properties to Bamboo task configuration. Can use all Bamboo server side services and can access DB if necessary. Should throw a runtime exception if conversion fails.- Specified by:
toTaskConfiguration
in interfaceTaskDefinitionExporter
- Parameters:
taskContainer
- current task container (a job or an environment for instance)taskProperties
- the current task- Returns:
- task configuration
-
toSpecsEntity
@NotNull public @NotNull com.atlassian.bamboo.specs.builders.task.AntTask toSpecsEntity(@NotNull @NotNull TaskDefinition taskDefinition)
Description copied from interface:TaskDefinitionExporter
Create Bamboo Specs object representing this task. Implementors don't need to handle common task properties like e.g. enabled/disabled, but must task specific configuration.- Specified by:
toSpecsEntity
in interfaceTaskDefinitionExporter
-
validate
@NotNull public @NotNull List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> validate(@NotNull @NotNull TaskValidationContext taskValidationContext, @NotNull @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
Description copied from interface:TaskDefinitionExporter
Validates task properties in context of enclosing plan or deployment properties. Should check for any inconsistencies between task definition and the rest of plan or deployment content, as it is provided in the validation context. Returns list of validation errors or empty if everything is ok.Should check RSS permissions if necessary.
- Specified by:
validate
in interfaceTaskDefinitionExporter
-
-