maven-plugins icon indicating copy to clipboard operation
maven-plugins copied to clipboard

Make delay of watcher plugin configurable?

Open ghost opened this issue 9 years ago • 2 comments

The watcher plugin is very useful. I use it to deploy changes of JavaScript files to a local dev environment (which then triggers a page reload). Since the changes are small, happen frequently and the build process is very quick, it would be great if there was no artificial delay before the build process is started.

Therefore my question: Would it be possible to make the delay configurable?

ghost avatar Mar 02 '16 17:03 ghost

Sure, no reason it couldn't be modified. I see just a couple timeouts in the code, it probably is as easy as making those configurable as an option. "shortTimeout" is set to 750ms -- is that what you'd like to make configurable? PR would be readily accepted.

On Wed, Mar 2, 2016 at 12:50 PM, Joel Richard [email protected] wrote:

The watcher plugin is very useful. I use it to deploy changes of JavaScript files to a local dev environment (which then triggers a page reload). Since the changes are small, happen frequently and the build process is very quick, it would be great if there was no artificial delay before the build process is started.

Therefore my question: Would it be possible to make the delay configurable?

— Reply to this email directly or view it on GitHub https://github.com/fizzed/maven-plugins/issues/2.

jjlauer avatar Mar 02 '16 18:03 jjlauer

At the moment I don't have time for it, but if I continue using the plugin, then I will create a pull request at some point.

ghost avatar Mar 04 '16 17:03 ghost