The task I’m thinking about is part of a plugin that is starting an embedded jetty server to run a web app and re-deploying if any classes have changed. Basically the same idea as the Gretty plugin.
Currently we have our own custom logic for doing this which basically hangs the task and uses the java.nio WatchService to monitor changed classes. It works but is most likely the same as Gradle has built in with the continuous build feature so I was looking if I could re-use that and get rid of some custom code.
Since we already can add and re-order tasks using gradle.startParameter.taskNames, I don’t see it much different to be able to also set other options in StartParameter at the same time as well.