public class EnvStringParseHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkStringForMacro(ToolInstaller installer,
String stringName,
String macroString)
Checks that all variables have been resolved.
|
static String |
substituteEnvVars(String macroString,
EnvVars environment)
Resolves tools installation directory using global variables.
|
static String |
substituteNodeProperty(String macroString,
NodeProperty<?> property)
Substitutes string according to node property.
|
static String |
substituteNodeVariables(String macroString,
Node node)
Substitutes string according to all node properties.
|
public static String substituteEnvVars(String macroString, EnvVars environment)
environment - Collection of environment variablesmacroString - Input path with macro calls@Nullable public static String substituteNodeVariables(@CheckForNull String macroString, @Nonnull Node node)
macroString - String to be substitutednode - Node whose properties provide available substitutionpublic static String substituteNodeProperty(String macroString, NodeProperty<?> property)
macroString - String to be substitutedproperty - Node propertypublic static void checkStringForMacro(ToolInstaller installer, String stringName, String macroString) throws ExtraToolInstallersException
installer - The installer that's doing the checking.stringName - The human-friendly name of the string being checked.macroString - The string contents that should be checked.ExtraToolInstallersException - String validation failed (there are unresolved variables)Copyright © 2016–2022. All rights reserved.