Is there a way to specify which app to run instead of having it ask me?
> test:run
Multiple main classes detected
[1] junk.Hi
[2] junk.Ho
[3] junk.Hey
Enter number:
I tried doing this, but it didn't help:
> set mainClass in (Compile, test) := Some("junk.Ho")
And this doesn't work (presumably) because the app to run is in the test sources:
> runMain junk.Ho
[info] Running junk.Ho
[error] (run-main) java.lang.ClassNotFoundException: junk.Ho
This should work:
>test:runMain junk.Ho
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