Esempio n. 1
0
 public static void init(Shell shell) {
   for (EnvironmentProperty environmentProperty : values()) {
     shell
         .getEnvironment()
         .setProperty(environmentProperty.getName(), environmentProperty.getValue(shell));
   }
 }
Esempio n. 2
0
 public static void update(Shell shell) {
   for (EnvironmentProperty environmentProperty : values()) {
     if (environmentProperty.regularUpdateRequired) {
       shell
           .getEnvironment()
           .setProperty(environmentProperty.getName(), environmentProperty.getValue(shell));
     }
   }
 }