/** * Append the specified environment variables to the process. * * @param env The new set of environment variables. * @return This object (for method chaining). */ @SuppressWarnings({"rawtypes"}) public ProcBuilder env(Map env) { if (env != null) for (Map.Entry e : (Set<Map.Entry>)env.entrySet()) environment(e.getKey().toString(), e.getValue() == null ? null : e.getValue().toString()); return this; }
/** * Append the specified environment variables to the process. * * @param env The new set of environment variables. * @return This object (for method chaining). */ @SuppressWarnings({"rawtypes"}) public ProcBuilder env(Map env) { if (env != null) for (Map.Entry e : (Set<Map.Entry>)env.entrySet()) environment(e.getKey().toString(), e.getValue() == null ? null : e.getValue().toString()); return this; }
/** * Append the specified environment variables to the process. * * @param env The new set of environment variables. * @return This object (for method chaining). */ @SuppressWarnings({"rawtypes"}) public ProcBuilder env(Map env) { if (env != null) for (Map.Entry e : (Set<Map.Entry>)env.entrySet()) environment(e.getKey().toString(), e.getValue() == null ? null : e.getValue().toString()); return this; }