Replace values of environment variables at given string
Change all substrings of the form %[A-Z]% to the corresponding environment variables values
For example, in Windows %ProgramFiles% typically maps to "C:\Program Files"
Variable matching is case sensitive

getProfile

Property files must be in the directory pointed by a operating system environment variable names
KNOWGATE_PROFILES. If KNOWGATE_PROFILES environment variable is not found, the files will
be seeked by default on C:\WINNT\ or C:\WINDOWS\ on Window Systems and /etc/ on UNIX systems.

Parameters:

sProfile - Properties file to read (for example "hipergate.cnf")

Since:

v2.2 The behaviour of this function has changed: it first tries to get KNOWGATE_PROFILES
from Java environment variables as set on startup "java -DKNOWGATE_PROFILES=..." if there is no
Java property named KNOWGATE_PROFILES then operating system environment variabled are scanned and
last if neither is found the default C:\WINNT\ C:\WINDOWS\ or /etc/ is returned

If no property named sVarName is found at sProfile then bDefault value is returned.
If sVarName is one of {true , yes, on, 1} then return value is true.
If sVarName is one of {false, no, off, 0} then return value is false.
If sVarName is any other value then then return value is bDefault

resolveEnvironmentVariables

Change all substrings of the form %[A-Z]% to the corresponding environment variables values
For example, in Windows %ProgramFiles% typically maps to "C:\Program Files"
Variable matching is case sensitive

Parameters:

sInput - String

Returns:

String

Throws:

java.lang.IllegalArgumentException - If there is a Malformed \\uxxxx encoding or any other type of intrinsic error at the environment variables values

Since:

3.1

updateSystemTime

public static void updateSystemTime(long lTime)

Update system time

This is an alpha testing method, do not use in production environments.