com.atlassian.bamboo.task.conversion
Class AbstractBuilder2TaskConverter

java.lang.Object
  extended by com.atlassian.bamboo.task.conversion.AbstractBuilder2TaskConverter
All Implemented Interfaces:
LegacyBuilderToTaskConverter
Direct Known Subclasses:
AbstractShellBuilder2TaskConverter, AntBuilder2TaskConverter, GrailsBuilder2TaskConverter, MavenBuilder2TaskConverter, PhpUnitBuilder2TaskConverter

public abstract class AbstractBuilder2TaskConverter
extends java.lang.Object
implements LegacyBuilderToTaskConverter

Since:
3.1

Field Summary
protected  TaskIdSupplier incrementTaskId
          Creates id that is unique within single Plan.
 
Constructor Summary
AbstractBuilder2TaskConverter()
           
 
Method Summary
protected  java.util.Map<java.lang.String,java.lang.String> stripBuilderParameters(BuildConfiguration buildConfiguration, java.lang.String prefix)
          Retrieves builder parameters, removes the prefix from them and puts them into a map.
 
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.conversion.LegacyBuilderToTaskConverter
builder2TaskList
 

Field Detail

incrementTaskId

protected final TaskIdSupplier incrementTaskId
Creates id that is unique within single Plan. This implementation increments the value tarting at 1.

Constructor Detail

AbstractBuilder2TaskConverter

public AbstractBuilder2TaskConverter()
Method Detail

stripBuilderParameters

protected java.util.Map<java.lang.String,java.lang.String> stripBuilderParameters(@NotNull
                                                                                  BuildConfiguration buildConfiguration,
                                                                                  @NotNull
                                                                                  java.lang.String prefix)
Retrieves builder parameters, removes the prefix from them and puts them into a map. Particularly useful when converting builder to single task.

Parameters:
buildConfiguration -
Returns:


Copyright © 2012 Atlassian. All Rights Reserved.