-
For what purpose is I thought that defining
would cause
It also seems that if target has main method and I still use
and run In what case should we then use
How can I implement command like: Run all modules with main and gracefully skip modules without main? My versions are:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I find Mills answer quite clear: $ mill inspect main.mainClass
[1/1] inspect
main.mainClass(JavaModule.scala:54)
Allows you to specify an explicit main class to use for the `run` command.
If none is specified, the classpath is searched for an appropriate main
class to use if one exists
Inputs:
Looks like you can't skip the run command by just providing no main class.
That's currently not possible out of the box. You could use |
Beta Was this translation helpful? Give feedback.
-
You could also define a top -level task to call run on the modules you want, or use {} syntax to tell the CLI which modules. Opt-in instead of opt-out, if that's an option. |
Beta Was this translation helpful? Give feedback.
I find Mills answer quite clear:
Looks like you can't skip the run command by just providing no main class.
That's currently not possible out of the box.
You could use
mill --keep-going _.run
and ignore the failed targets, or write your own command to skip when needed.