com.atlassian.bamboo.build
Class VariableSubstitutionBean

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

public class VariableSubstitutionBean
extends AbstractSubstitutionBean

This bean is responsible for substituting BuildDefinition values with variables.


Constructor Summary
VariableSubstitutionBean(VariableBuilderBean variableBuilderBean)
           
 
Method Summary
 VariableBuilderBean getVariableBuilderBean()
           
 java.lang.String removeAllVariables(java.lang.String unparsedString)
           
 java.lang.String substituteBambooVariables(java.lang.String commandLine)
          Takes a String to be parsed for variable references and substitutes with the variable values then returns the substituted string.
 java.lang.String[] substituteBambooVariables(java.lang.String[] commandLine, BuildContext buildContext, BuildLogger buildLogger)
          Takes an array of Strings to be parsed for variable references and substitutes with the variable values then returns the substituted string If BuildContext is null only global variables and capabilities will be substituted.
 java.lang.String substituteBambooVariables(java.lang.String commandline, BuildContext buildContext, BuildLogger buildLogger)
          Takes a String to be parsed for variable references and substitutes with the variable values then returns the substituted string.
 java.lang.String substituteBambooVariables(java.lang.String commandLine, BuildResults buildResults, BuildLogger buildLogger)
          Takes an array of Strings to be parsed for variable references and substitutes with the variable values then returns the substituted string If BuildContext is null only global variables and capabilities will be substituted.
 
Methods inherited from class com.atlassian.bamboo.build.AbstractSubstitutionBean
findAllVariables, removeAllVariables, substituteVariables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableSubstitutionBean

public VariableSubstitutionBean(VariableBuilderBean variableBuilderBean)
Method Detail

getVariableBuilderBean

public VariableBuilderBean getVariableBuilderBean()

substituteBambooVariables

public java.lang.String substituteBambooVariables(@Nullable
                                                  java.lang.String commandline,
                                                  @Nullable
                                                  BuildContext buildContext,
                                                  BuildLogger buildLogger)
Takes a String to be parsed for variable references and substitutes with the variable values then returns the substituted string. If BuildContext is null only global variables and capabilities will be substituted.

Parameters:
commandLine - - to substitute
buildContext - - associated with the command line
Returns:
string

substituteBambooVariables

@Nullable
public java.lang.String substituteBambooVariables(@Nullable
                                                           java.lang.String commandLine)
Takes a String to be parsed for variable references and substitutes with the variable values then returns the substituted string. Only global variables and capabilities will be substituted.

Parameters:
commandLine - - to substitute
Returns:
string

substituteBambooVariables

public java.lang.String[] substituteBambooVariables(java.lang.String[] commandLine,
                                                    @Nullable
                                                    BuildContext buildContext,
                                                    BuildLogger buildLogger)
Takes an array of Strings to be parsed for variable references and substitutes with the variable values then returns the substituted string If BuildContext is null only global variables and capabilities will be substituted.

Parameters:
commandLine -
buildContext -
buildLogger -
Returns:
string

substituteBambooVariables

public java.lang.String substituteBambooVariables(@Nullable
                                                  java.lang.String commandLine,
                                                  @Nullable
                                                  BuildResults buildResults,
                                                  BuildLogger buildLogger)
Takes an array of Strings to be parsed for variable references and substitutes with the variable values then returns the substituted string If BuildContext is null only global variables and capabilities will be substituted.

Parameters:
commandLine -
buildResults -
buildLogger -
Returns:
string

removeAllVariables

public java.lang.String removeAllVariables(@NotNull
                                           java.lang.String unparsedString)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.