public class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static String |
join(Collection<?> strings,
String separator)
Concatenate multiple strings by inserting a separator.
|
static String |
replaceMacro(String s,
Map<String,String> properties)
Replaces the occurrence of '$key' by properties.get('key').
|
static String |
replaceMacro(String s,
VariableResolver<String> resolver)
Replaces the occurrence of '$key' by resolver.get('key').
|
public static String join(Collection<?> strings, String separator)
public static String replaceMacro(String s, Map<String,String> properties)
Unlike shell, undefined variables are left as-is (this behavior is the same as Ant.)
public static String replaceMacro(String s, VariableResolver<String> resolver)
Unlike shell, undefined variables are left as-is (this behavior is the same as Ant.)
Copyright © 2017. All rights reserved.