Skip to content
Micha Niskin edited this page Dec 5, 2014 · 82 revisions

Note: This document describes features that have not yet been merged with the master branch. This is a preview of the 2.0.0-rc1 release.

The boot environment contains the current JVM classpath configuration state.

(get-env)
Returns the whole environment map.
(get-env key)
Returns the value associated with the given key, or nil if the key is not found.
(get-env key not-found)
Returns the value associated with the given key, or not-found if the key is not found.
(set-env! key val & kvs)
Sets the values for the given keys. Note that this may produce side effects, changes to the JVM's classpath, etc.

Note: Env settings must be printable and writable–the env must be able to be passed to Pods to configure them, so the env map must always be able to be round-tripped through pr-str and read-string.

Replace Env Setting With New Value

(set-env! :source-paths #{"foo" "bar"})

Update Env

(set-env! :source-paths #(conj % "baz"))

Env Keys

:resource-paths
Foop.
:source-paths
Foop.
:asset-paths
Foop.
:target-path
Foop.
:dependencies
Foop.
:repositories
Foop.
:wagons
Foop.
:local-repo
Foop.
:offline?
Foop.
:mirrors
Foop.
:proxy
Foop.
:transfer-listener
Foop.
Clone this wiki locally