public class StringPropertyReplacer extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NEWLINE
New line string constant
|
| Constructor and Description |
|---|
StringPropertyReplacer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
replaceProperties(Map<String,String> map,
Properties properties) |
static String |
replaceProperties(String string)
Go through the input string and replace any occurance of ${p} with the
System.getProperty(p) value.
|
static String |
replaceProperties(String string,
Properties props)
Go through the input string and replace any occurance of ${p} with the
props.getProperty(p) value.
|
public static final String NEWLINE
public static String replaceProperties(String string)
env. prefix, for example ${env.PATH}string - - the string with possible ${} referencespublic static String replaceProperties(String string, Properties props)
string - - the string with possible ${} referencesprops - - the source for ${x} property ref values, null means use
System.getProperty()public static void replaceProperties(Map<String,String> map, Properties properties)
Copyright © 2022 JBoss by Red Hat. All rights reserved.