com.atlassian.bamboo.build
Class AbstractSubstitutionBean

java.lang.Object
  extended by com.atlassian.bamboo.build.AbstractSubstitutionBean
Direct Known Subclasses:
VariableSubstitutionBean

public abstract class AbstractSubstitutionBean
extends java.lang.Object


Constructor Summary
AbstractSubstitutionBean()
           
 
Method Summary
protected  java.util.Set<java.lang.String> findAllVariables(java.lang.String[] strings)
          Given a string array, and a Map of variables (variable -> value), all patterns in the string array matching ${bamboo.} will be substituted with the value.
protected  java.lang.String[] removeAllVariables(java.lang.String[] strings)
          Given a string array, remove all variable patterns.
protected  java.lang.String[] substituteVariables(java.lang.String[] commandLine, BuildLogger buildLogger, java.util.Map<java.lang.String,java.lang.String> variableSourceMap)
          Given a string array, and a Map of variables (variable -> value), all patterns in the string array matching ${bamboo.} will be substituted with the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSubstitutionBean

public AbstractSubstitutionBean()
Method Detail

substituteVariables

protected java.lang.String[] substituteVariables(@NotNull
                                                 java.lang.String[] commandLine,
                                                 @Nullable
                                                 BuildLogger buildLogger,
                                                 @NotNull
                                                 java.util.Map<java.lang.String,java.lang.String> variableSourceMap)
Given a string array, and a Map of variables (variable -> value), all patterns in the string array matching ${bamboo.} will be substituted with the value.

Parameters:
commandLine - Array of string values to be analyzed
buildLogger - Optional logger
variableSourceMap - Definitions of variables to be used in substitution
Returns:
Array of string values with variables extrapolated

findAllVariables

@NotNull
protected java.util.Set<java.lang.String> findAllVariables(@NotNull
                                                                   java.lang.String[] strings)
Given a string array, and a Map of variables (variable -> value), all patterns in the string array matching ${bamboo.} will be substituted with the value.

Parameters:
strings - Array of string values to be analyzed
Returns:
Array of string values with variables extrapolated

removeAllVariables

protected java.lang.String[] removeAllVariables(@NotNull
                                                java.lang.String[] strings)
Given a string array, remove all variable patterns.

Parameters:
strings - Array of string values to be analyzed
Returns:
Array of string values with variables removed


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.