Skip to content

Commit 7eb9e0c

Browse files
committed
Introduce :launchpad/jvm-opts
Make sure we populate the internal :java-args from the above-mentioned key, therefore allowing `deps.local.edn` to contain things that differ from `deps.edn`. Note that there is naming discrepancy as this patch sticks with the official key - `:jvm-opts` rather than the internal name. The behavior of appending to existing `:jvm-opts`, in order, has been preserved as per the `tools.deps` built-in.
1 parent 3d0cabf commit 7eb9e0c

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
- Add `--no-prefix` or `{:launchpad/options {:prefix false}}` to hide the
1414
start-of-line per-process prefix in the output
15+
- Support `:launchpad/jvm-opts`: the option is, same as the built-in
16+
one, used for injecting JVM options to the clojure process.
1517

1618
## Fixed
1719

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ configure launchpad.
126126
:launchpad/main-opts ["--emacs"] ; additional CLI flags, so you can encode your
127127
; own preferences
128128

129+
:launchpad/jvm-opts ["-XX:-OmitStackTraceInFastThrow"] ; additional JVM options
130+
129131
;; takes options as a map and merges it into the `ctx`
130132
:launchpad/options {:portal true
131133
:nrepl-port 1234}

src/lambdaisland/launchpad.clj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@
251251
(update :main-opts (fnil into []) (concat
252252
(:launchpad/main-opts deps-system)
253253
(:launchpad/main-opts deps-local)))
254+
(update :java-args (fnil into []) (concat
255+
(:launchpad/jvm-opts deps-system)
256+
(:launchpad/jvm-opts deps-local)))
254257
(merge
255258
(:launchpad/options deps-system)
256259
(:launchpad/options deps-local))

0 commit comments

Comments
 (0)