Class Environment

java.lang.Object
fi.evolver.script.Environment

public class Environment extends Object
  • Constructor Details

    • Environment

      public Environment()
  • Method Details

    • setPersonalVariable

      public static void setPersonalVariable(String name, String value)
      Sets a personal environment variable into a hidden variable file. The variable file will be sourced from the .bashrc file. Any previous variable with the same name will be replaced.
      Parameters:
      name - The name of the variable to be set.
      value - The new value for the variable.
    • setPersonalVariable

      public static void setPersonalVariable(String name, String value, String comment)
      Sets a personal environment variable into a hidden variable file. The variable file will be sourced from the .bashrc file. Any previous variable with the same name will be replaced.
      Parameters:
      name - The name of the variable to be set.
      value - The new value for the variable.
      comment - A comment for the variable
    • getPersonalVariable

      public static Optional<String> getPersonalVariable(String name)