Worker launch: finds out what the parent runs on, builds the command
line for bb or JVM workers, and computes (and caches) the classpath for
--runtime jvm from a babashka parent. Shell only; the decisions are in
volley.runtime.
Portable: it loads on babashka and on the JVM.
Worker launch: finds out what the parent runs on, builds the command line for bb or JVM workers, and computes (and caches) the classpath for `--runtime jvm` from a babashka parent. Shell only; the decisions are in `volley.runtime`. Portable: it loads on babashka and on the JVM.
(bb?)True when this process is babashka.
True when this process is babashka.
(input-arguments)This JVM's launch options (-Xmx..., -D..., --add-opens ...).
This JVM's launch options (`-Xmx...`, `-D...`, `--add-opens ...`).
(invocation)The command the user ran volley with (volley.runtime/invocation).
The command the user ran volley with (`volley.runtime/invocation`).
(java-executable)The java of this JVM, or java from the path when running on
babashka.
The `java` of this JVM, or `java` from the path when running on babashka.
(parent-classpath)The classpath of this process, as a string.
The classpath of this process, as a string.
(paths-off-classpath paths)The directories and jars among paths that exist and are not entries
of this process's classpath, as canonical paths: what a worker, whose
classpath adds every suite's test paths, can load from and this process
cannot.
The directories and jars among `paths` that exist and are not entries of this process's classpath, as canonical paths: what a worker, whose classpath adds every suite's test paths, can load from and this process cannot.
(project-classpath requested-aliases)The classpath of the project in the current directory for aliases,
from clojure -Spath, cached in .volley/classpath-<key>.txt where the
key hashes deps.edn, the aliases, the deps.edn files of :local/root
dependencies and the user-level deps.edn. Returns {:classpath s :aliases [..] :jvm-opts [..] :cached? bool} (:jvm-opts are the
aliases' own) or {:error msg}.
The classpath of the project in the current directory for `aliases`,
from `clojure -Spath`, cached in `.volley/classpath-<key>.txt` where the
key hashes deps.edn, the aliases, the deps.edn files of `:local/root`
dependencies and the user-level deps.edn. Returns `{:classpath s
:aliases [..] :jvm-opts [..] :cached? bool}` (`:jvm-opts` are the
aliases' own) or `{:error msg}`.(volley-root)The classpath entry volley itself is loaded from (a directory or a jar), or nil.
The classpath entry volley itself is loaded from (a directory or a jar), or nil.
(with-test-paths cp cfg)Classpath cp plus every suite's test paths, which Kaocha adds when it
loads a suite (kaocha.testable/load). Source paths are not added: Kaocha
only uses them for watching.
Classpath `cp` plus every suite's test paths, which Kaocha adds when it loads a suite (`kaocha.testable/load`). Source paths are not added: Kaocha only uses them for watching.
(worker-command cfg aliases)(worker-command cfg aliases {:keys [refresh?]})The worker command for cfg (a normalized config) and the
--aliases the user gave (keywords, or nil). With :refresh? the
parent's classpath is computed again rather than reused (a computed JVM
classpath is keyed on deps.edn and needs no flag). Returns {:command argv}, or {:error msg} when a classpath cannot be computed.
The worker command for `cfg` (a normalized config) and the
`--aliases` the user gave (keywords, or nil). With `:refresh?` the
parent's classpath is computed again rather than reused (a computed JVM
classpath is keyed on deps.edn and needs no flag). Returns `{:command
argv}`, or `{:error msg}` when a classpath cannot be computed.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |