SBT stop run without exiting

前端 未结 4 1522
迷失自我
迷失自我 2020-11-30 23:00

How do you terminate a run in SBT without exiting?

I\'m trying CTRL+C but it exits SBT. Is there a way to only exit the running application while keeping SBT open?

4条回答
  •  Happy的楠姐
    2020-11-30 23:51

    In the default configuration, your runs happen in the same JVM that sbt is running, so you can't easily kill them separately.

    If you do your run in a separate, forked JVM, as described at Forking, then you can kill that JVM (by any means your operating system offers) without affecting sbt's JVM:

    fork in run := true
    

提交回复
热议问题