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 voidaddEnvironmentVars(String key, String value) static voidstatic Stringget 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 Stringstatic StringgetenvNoError(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 voidsetEnvironmentVars(Map<String, String> newEnv)
-
Constructor Details
-
SystemUtility
public SystemUtility()
-
-
Method Details
-
setEnvironmentVars
-
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()
-