weavejester / environ

Library for managing environment variables in Clojure
924 stars 71 forks source link

dynamic system properties #68

Closed kevinjamescasey closed 7 years ago

kevinjamescasey commented 7 years ago

Using System/setProperty does not allow that property to be included in the environ.core/env map.

Is that intentional? Would you consider a dyna-env or current-env that calls System/getProperties on every invocation?

weavejester commented 7 years ago

Yes; the environment is designed to be the environment the process was started with. Rather than making the environment dynamic, ideally you should use the environment populate a dynamic configuration.