Skip to content

Commit

Permalink
Start Java model API when abs-local-port is set
Browse files Browse the repository at this point in the history
  • Loading branch information
rudi committed Jul 18, 2024
1 parent 252d9f2 commit 005fcf4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion abs-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,9 @@ Expects `abs-backend' to be bound to the desired backend."
(buffer-name (concat "*abs java " module "*"))
(command (concat "java -cp gen:"
(expand-file-name abs-java-classpath)
" " module ".Main &")))
" " module ".Main"
(when abs-local-port (format " -p %d " abs-local-port))
" &")))
(when (get-buffer buffer-name)
(kill-buffer (get-buffer buffer-name)))
(let ((buffer (get-buffer-create buffer-name)))
Expand Down

0 comments on commit 005fcf4

Please sign in to comment.