public class PropertiesUtil
extends java.lang.Object
Constructor and Description |
---|
PropertiesUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
replaceSagInstallAreaToken(java.util.Map<java.lang.Object,java.lang.Object> properties,
java.lang.String sagHome)
Replaces all occurrences of "[path|url]:sag.install.area" in the values of the specified
properties with
the SAG home directory. |
static void |
replaceToken(java.util.Map<java.lang.Object,java.lang.Object> properties,
java.lang.String token,
java.lang.String replacement)
Replaces all occurrences of "[path|url]:
token " in the values of the specified properties with the
given replacement . |
public static void replaceSagInstallAreaToken(java.util.Map<java.lang.Object,java.lang.Object> properties, java.lang.String sagHome) throws NervException
properties
with
the SAG home directory.properties
- properties containing location tokens in their valuessagHome
- Software AG install rootNervException
- if sagHome is nullpublic static void replaceToken(java.util.Map<java.lang.Object,java.lang.Object> properties, java.lang.String token, java.lang.String replacement)
token
" in the values of the specified properties
with the
given replacement
.properties
- properties containing location tokens in their valuestoken
- location token to search for and to replace with the specified replacement
replacement
- replacement for the specified token