Class 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 Detail

      • SetEnvironmentVariable

        public SetEnvironmentVariable()
    • 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.