Any way to evaluate a cached task programmatically? #6104
Unanswered
seroperson
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
If you want to dynamically trigger task evaluation at runtime, the best way is probably to take an evaluator in your command and use that https://mill-build.org/mill/fundamentals/bundled-libraries.html#_evaluator_experimental |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! Currently I'm developing a play-like live reloading plugin, which allows you to run application and then replace a classloader in runtime with updated code when source files change. I've implemented a task, which watches for filesystem changes and calls
compile()method fromJavaModuleto compile classes and get the new classpath. However, when I change source files and then callcompile()in runtime for the second time, which must compile changed files, it does nothing.My task looks like this:
How to do it correctly? I guess I need something like this to be possible:
Beta Was this translation helpful? Give feedback.
All reactions