Vertispan / j2clmavenplugin

Maven plugin to launch new J2CL compilation
https://vertispan.github.io/j2clmavenplugin/
Apache License 2.0
53 stars 26 forks source link

In watch mode, changed, created and deleted files are now processed a… #191

Closed treblereel closed 1 year ago

treblereel commented 1 year ago

…s a bulk set, based on timeout value

Latest directory-watcher adds ability to set timeout, in which changes are accumulated in one change set.

It's very useful in large projects where IDE permanently saves files which leads to permanent recompilation.

Maybe it could be a good idea to make timeout value (now it's 500ms) configurable.

niloc132 commented 1 year ago

From some gitter conversation, we've realized that WatchService.BuildQueue already has a "build debounce" that serves the same purpose as this patch, so the right move is to make a change that parameterizes that value, lets it be configured by the user.