public abstract class VariablesSubstitutionHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
VariablesSubstitutionHelper.PropFileVariablesSubstitutionHelper |
static class |
VariablesSubstitutionHelper.SimpleVariablesSubstitutionHelper |
Modifier and Type | Field and Description |
---|---|
static VariablesSubstitutionHelper |
PATH |
static VariablesSubstitutionHelper |
PROP_FILE |
Constructor and Description |
---|
VariablesSubstitutionHelper() |
Modifier and Type | Method and Description |
---|---|
String |
escapeVariableValue(String variableName,
String rawValue)
Escapes variable values for the required format.
|
static boolean |
hasMacros(String inputString) |
static boolean |
hasMacros(String inputString,
String macroName) |
String |
resolveVariable(String inputValue,
EnvVars environment)
Resolves tools installation directory using global variables.
|
String |
resolveVariable(String inputValue,
Node node) |
public static final VariablesSubstitutionHelper PROP_FILE
public static final VariablesSubstitutionHelper PATH
public String escapeVariableValue(String variableName, String rawValue)
variableName
- Name of the variable, which is being substitutedrawValue
- Input valuepublic String resolveVariable(@CheckForNull String inputValue, @Nonnull EnvVars environment)
environment
- Collection of environment variablesinputValue
- Input path with macro callspublic String resolveVariable(@CheckForNull String inputValue, @Nonnull Node node)
public static boolean hasMacros(@CheckForNull String inputString)
public static boolean hasMacros(@CheckForNull String inputString, String macroName)
Copyright © 2016–2021. All rights reserved.