Package com.softwaremining.util
Class SystemUtility
java.lang.Object
com.softwaremining.util.SystemUtility
Provides operating-system utilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addEnvironmentVars
(String key, String value) static void
static String
get the environment variable // * - and then reset to blank to make sure next step/processes cannot get access to it // * This is specially useful for JCL, where a ENV-VAR such as SYSOUT may be assigned in one step, but should not be used in next step (where it could also be applicable).static String
static String
getenvNoError
(String env) get the environment variable - don't show error if no variavle found // * - and then reset to blank to make sure next step/processes cannot get access to it // * This is specially useful for JCL, where a ENV-VAR such as SYSOUT may be assigned in one step, but should not be used in next step (where it could also be applicable).static void
setEnvironmentVars
(Map<String, String> newEnv) set Environment variables.
-
Constructor Details
-
SystemUtility
public SystemUtility()
-
-
Method Details
-
setEnvironmentVars
set Environment variables.- Parameters:
newEnv
-
-
getenv
get the environment variable // * - and then reset to blank to make sure next step/processes cannot get access to it // * This is specially useful for JCL, where a ENV-VAR such as SYSOUT may be assigned in one step, but should not be used in next step (where it could also be applicable). // * @param env- Returns:
-
getenvNoError
get the environment variable - don't show error if no variavle found // * - and then reset to blank to make sure next step/processes cannot get access to it // * This is specially useful for JCL, where a ENV-VAR such as SYSOUT may be assigned in one step, but should not be used in next step (where it could also be applicable). // * @param env- Returns:
-
getenv
-
addEnvironmentVars
-
clearEnvironmentVars
public static void clearEnvironmentVars()
-