Package com.elo.gradle.osgi.utils
Class VariableReplacer
java.lang.Object
com.elo.gradle.osgi.utils.VariableReplacer
Utility class to replace variables in strings
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringreplaceVariable(String value, Map<String, ?> properties) Replaces a variable in a string.
-
Method Details
-
replaceVariable
Replaces a variable in a string. A variable looks like this: ${variable:defaultValue} If a value for this variable is found in the Properties object, this value is prioritised.- Parameters:
value- the stringproperties- the properties object- Returns:
- the adjusted string
-