I have an Akka app that has a fork := true setting in build.sbt. So when I need to debug code I set it manually to false. That is something which is easy to forget.
Is there a way to override the fork setting from command line? For example when running sbt clean run. I've read that one can create a separate task and override fork just for that task. In latter case how would the clean run task look like?
Update: Sorry for the confusion. Following Marko's reply I realized that my ticket was incomplete. I would like a way to set this in a non-interactive shell. Right now I have an IntelliJ sbtTask (which also takes environment variables etc.) for which I just click the debug button to run the app. The task itself has only two words in it - clean run, but should need to create a separate one that would be fine.
Consider set command, for example from within sbt shell
set fork := false; clean; run
change will stick until
sbt is restarted, the build is reloaded, or the setting is overridden by another set command or removed by the session command
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With