[Tooling] BuildLauncher terminate blocking task

I would potentially like to build a blocking task using the BuildLauncher (the task is a JavaExec) then terminate it when a particular condition is met (in this case, some source files are changed). Terminating the connection doesn’t seem to work as the daemon still has it locked down, I believe.

I’m guessing that since Gradle was not designed to support non-terminating tasks, this might not be possible at the moment, but doesn’t hurt to ask =)

Regards, Daryl

You might be better off implementing this at the build level, not at the tooling level. There’s no way to tear down Gradle from the tooling API currently.