-
-
Notifications
You must be signed in to change notification settings - Fork 181
Boot Environment
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
, ornil
if thekey
is not found. - (get-env key not-found)
-
Returns the value associated with the given
key
, ornot-found
if thekey
is not found. -
(set-env! key val & kvs)
-
Sets the values for the given
key
s. 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
andread-string
.
(set-env! :source-paths #{"foo" "bar"})
(set-env! :source-paths #(conj % "baz"))
- :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.
You can find other developers and users in the #hoplon
channel on freenode IRC or the boot slack channel.
If you have questions or need help, please visit the Discourse site.
- Environments
- Boot environment
- Java environment
- Tasks
- Built-ins
- Third-party
- Tasks Options
- Filesets
- Target Directory
- Pods
- Boot Exceptions
- Configuring Boot
- Updating Boot
- Setting Clojure version
- JVM Options
- S3 Repositories
- Scripts
- Task Writer's Guide
- Require inside Tasks
- Boot for Leiningen Users
- Boot in Leiningen Projects
- Repl reloading
- Repository Credentials and Deploying
- Snippets
- Troubleshooting
- FAQ
- API docs
- Core
- Pod
- Util