Skip to content

Introduce :launchpad/jvm-opts #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

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

## Fixed

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ configure launchpad.
:launchpad/main-opts ["--emacs"] ; additional CLI flags, so you can encode your
; own preferences

:launchpad/jvm-opts ["-XX:-OmitStackTraceInFastThrow"] ; additional JVM options

;; takes options as a map and merges it into the `ctx`
:launchpad/options {:portal true
:nrepl-port 1234}
Expand Down
3 changes: 3 additions & 0 deletions src/lambdaisland/launchpad.clj
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@
(update :main-opts (fnil into []) (concat
(:launchpad/main-opts deps-system)
(:launchpad/main-opts deps-local)))
(update :java-args (fnil into []) (concat
(:launchpad/jvm-opts deps-system)
(:launchpad/jvm-opts deps-local)))
(merge
(:launchpad/options deps-system)
(:launchpad/options deps-local))
Expand Down