io.sarl.apputils.bootiqueapp.utils
Class SystemProperties
final class SystemProperties
extends java.lang.Object
Utilities methods for accessing the properties and the environment variables.
Maven Group Identifier:
io.sarl.apputils
Maven Artifact Identifier:
bootiqueapp
Since:
0.10
Action Summary
Modifier and type Action and description
static java.lang.String getValue(String)
Replies the value of a property or an environment variable.
static java.lang.String getValue(String,String)
Replies the value of a property or an environment variable.
Action Details
getValue(String)
def getValue(String) : java.lang.String
Replies the value of a property or an environment variable.

The function seach for the following values:
  • a property with the given name,
  • an environment variable with the given name,
  • a property with the name "bq."+name,
  • an environment variable with the name "bq."+name.
Parameters:
name - the name of the property or an environment variable.
Returns:
the value, or null .
getValue(String,String)
def getValue(String,String) : java.lang.String
Replies the value of a property or an environment variable.

The function seach for the following values:
  • a property with the given name,
  • an environment variable with the given name,
  • a property with the name "bq."+name,
  • an environment variable with the name "bq."+name.
Parameters:
name - the name of the property or an environment variable.
defaultValue - the default value.
Returns:
the value, or the default value.