public class BuildDefinitionConverterImpl extends Object implements BuildDefinitionConverter
BuildDefinition
to and from an XMLConfiguration
BUILD_POLLING, BUILD_TRIGGER_IP, CLEAN_WORKING_DIRECTORY, DEPENDENT_WILL_BE_TRIGGERED_BY, DEPENDENT_WILL_TRIGGER, INHERIT_REPOSITORY, REPOSITORY_DEFINING_WORKING_DIRECTORY, SELECTED_BUILD_STRATEGY, SELECTED_BUILDER_KEY
Constructor and Description |
---|
BuildDefinitionConverterImpl(com.atlassian.plugin.PluginAccessor pluginAccessor) |
Modifier and Type | Method and Description |
---|---|
BuildDefinition |
copyConfigurationToDefinition(org.apache.commons.configuration.HierarchicalConfiguration fromConfig,
BuildDefinition buildDefinition)
Copies the
HierarchicalConfiguration items to the passed BuildDefinition object |
static List<BuildStrategy> |
createBuildStrategiesListFromOldConfigurationFormat(BuildStrategyManager buildStrategyManager,
org.apache.commons.configuration.HierarchicalConfiguration fromConfig)
Deprecated.
since 4.3
|
org.apache.commons.configuration.XMLConfiguration |
fromObject(PartialBuildDefinition buildDefinition) |
List<BuildDefinitionTransformerModuleDescriptor> |
getTransformerDescriptors() |
static <T extends OptionallyConvertibleFromConfig> |
populate(org.apache.commons.configuration.HierarchicalConfiguration fromConfig,
T optionallyConvertibleFromConfig) |
public BuildDefinitionConverterImpl(@NotNull com.atlassian.plugin.PluginAccessor pluginAccessor)
public org.apache.commons.configuration.XMLConfiguration fromObject(@NotNull PartialBuildDefinition buildDefinition)
fromObject
in interface BuildDefinitionConverter
@NotNull public BuildDefinition copyConfigurationToDefinition(@NotNull org.apache.commons.configuration.HierarchicalConfiguration fromConfig, @NotNull BuildDefinition buildDefinition)
BuildDefinitionConverter
HierarchicalConfiguration
items to the passed BuildDefinition
objectcopyConfigurationToDefinition
in interface BuildDefinitionConverter
public List<BuildDefinitionTransformerModuleDescriptor> getTransformerDescriptors()
@Nullable public static <T extends OptionallyConvertibleFromConfig> T populate(@NotNull org.apache.commons.configuration.HierarchicalConfiguration fromConfig, @NotNull T optionallyConvertibleFromConfig)
@Nullable @Deprecated public static List<BuildStrategy> createBuildStrategiesListFromOldConfigurationFormat(@NotNull BuildStrategyManager buildStrategyManager, @NotNull org.apache.commons.configuration.HierarchicalConfiguration fromConfig)
buildStrategyManager
- fromConfig
- Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.