Package org.jboss.as.test.shared
Class PropertiesValueResolver
java.lang.Object
org.jboss.as.test.shared.PropertiesValueResolver
Parses a string and replaces any references to system properties or environment variables in the string
- Author:
- Jaikiran Pai (copied from JBoss DMR project), David M. Lloyd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringreplaceProperties(String value) Replace properties of the form:${<[env.]name>[,<[env.]name2>[,<[env.]name3>.static StringreplaceProperties(String value, Properties properties) Replace properties of the form:${<[env.]name>[,<[env.]name2>[,<[env.]name3>.
-
Constructor Details
-
PropertiesValueResolver
public PropertiesValueResolver()
-
-
Method Details
-
replaceProperties
Replace properties of the form:${<[env.]name>[,<[env.]name2>[,<[env.]name3>...]][:<default>]}- Parameters:
value- - either a system property or environment variable reference- Returns:
- the value of the system property or environment variable referenced if it exists
-
replaceProperties
Replace properties of the form:${<[env.]name>[,<[env.]name2>[,<[env.]name3>...]][:<default>]}- Parameters:
value- - either a system property or environment variable reference- Returns:
- the value of the system property or environment variable referenced if it exists
-