com.atlassian.bamboo.fieldvalue
Class TaskConfigurationUtils
java.lang.Object
com.atlassian.bamboo.fieldvalue.TaskConfigurationUtils
public class TaskConfigurationUtils
- extends java.lang.Object
Method Summary |
static void |
addTaskDefinitionsToConfig(java.util.List<TaskDefinition> taskDefinitions,
org.apache.commons.configuration.HierarchicalConfiguration config,
java.lang.String taskPrefix)
Adds tasks to a build configuration |
static java.util.List<TaskDefinition> |
getTaskDefinitionsFromConfig(java.lang.String taskPrefix,
org.apache.commons.configuration.HierarchicalConfiguration fromConfig)
Retrieves tasks from build configuration |
static long |
getUniqueId(java.util.List<TaskDefinition> tasks)
Returns id of task that is not used in provided list. |
static void |
removeTasksFromConfig(org.apache.commons.configuration.HierarchicalConfiguration config)
Removes all tasks from build configuration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TASK_CONFIG_ROOT
public static final java.lang.String TASK_CONFIG_ROOT
- See Also:
- Constant Field Values
TASK_PREFIX
public static final java.lang.String TASK_PREFIX
- See Also:
- Constant Field Values
TaskConfigurationUtils
public TaskConfigurationUtils()
removeTasksFromConfig
public static void removeTasksFromConfig(org.apache.commons.configuration.HierarchicalConfiguration config)
- Removes all tasks from build configuration
- Parameters:
config
- taskConfigRoot
-
addTaskDefinitionsToConfig
public static void addTaskDefinitionsToConfig(java.util.List<TaskDefinition> taskDefinitions,
org.apache.commons.configuration.HierarchicalConfiguration config,
java.lang.String taskPrefix)
- Adds tasks to a build configuration
- Parameters:
taskDefinitions
- config
- taskPrefix
-
getTaskDefinitionsFromConfig
public static java.util.List<TaskDefinition> getTaskDefinitionsFromConfig(java.lang.String taskPrefix,
org.apache.commons.configuration.HierarchicalConfiguration fromConfig)
- Retrieves tasks from build configuration
- Parameters:
taskPrefix
- fromConfig
-
- Returns:
getUniqueId
public static long getUniqueId(@NotNull
java.util.List<TaskDefinition> tasks)
- Returns id of task that is not used in provided list.
- Parameters:
tasks
-
- Returns:
Copyright © 2011 Atlassian. All Rights Reserved.