Class SetEnvironmentVariable
- java.lang.Object
-
- com.zerog.ia.auto.project.ProjectObject
-
- com.zerog.ia.auto.project.InstallableObject
-
- com.zerog.ia.auto.project.actions.Action
-
- com.zerog.ia.auto.project.actions.SetEnvironmentVariable
-
- All Implemented Interfaces:
OSHostable
,Referenceable
public final class SetEnvironmentVariable extends Action implements OSHostable
Sets environment variables on the end user's system. Compatible with Windows and Unix only. Unix Bash, sh, ksh, zsh, csh, tcsh shells are supported.
-
-
Constructor Summary
Constructors Constructor Description SetEnvironmentVariable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VariableAppendMode
getAppendMode()
The mode of how to append new values to the variable.boolean
getCurrentUserOnly()
Whether to change the variable only for the current user.java.lang.String
getValue()
The new value for the variable.java.lang.String
getVariable()
The variable to be changed.void
setAppendMode(VariableAppendMode mode)
The mode of how to append new values to the variable.void
setCurrentUserOnly(boolean currentUserOnly)
Whether to change the variable only for the current user.void
setValue(java.lang.String value)
The new value for the variable.void
setVariable(java.lang.String variable)
The variable to be changed.-
Methods inherited from class com.zerog.ia.auto.project.InstallableObject
getBelongsToUninstallPhase, getRollbackEnabledCancel, getRollbackEnabledError, getRuleExpression, getRules, getRulesLogicalOperation, getTagsInInstallPiece, setBelongsToUninstallPhase, setRollbackEnabledCancel, setRollbackEnabledError, setRuleExpression, setRulesLogicalOperation, setTagsInInstallPiece
-
Methods inherited from class com.zerog.ia.auto.project.ProjectObject
equals, getReferenceID, hashCode, setReferenceID
-
-
-
-
Method Detail
-
getVariable
public java.lang.String getVariable()
The variable to be changed.
-
getValue
public java.lang.String getValue()
The new value for the variable.
-
getCurrentUserOnly
public boolean getCurrentUserOnly()
Whether to change the variable only for the current user.
-
getAppendMode
public VariableAppendMode getAppendMode()
The mode of how to append new values to the variable.
-
setVariable
public void setVariable(java.lang.String variable)
The variable to be changed.
-
setValue
public void setValue(java.lang.String value)
The new value for the variable.
-
setCurrentUserOnly
public void setCurrentUserOnly(boolean currentUserOnly)
Whether to change the variable only for the current user.
-
setAppendMode
public void setAppendMode(VariableAppendMode mode)
The mode of how to append new values to the variable.
-
-