Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable hot swapping in debug mode with gradle and jetty?

I'm using jettyRun for running my simple spring application. I wanted to enable hot swapping with Intellij debuger, but looks like jetty doesn't catch the changes.
On http://docs.codehaus.org/display/GRADLE/Gradle+Jetty+Plugin I seen that it should work with:

jettyRun.scanIntervalSeconds=1

On the other hand, there is some inconsistency. On the gradle homepage this parameter is not listed: http://www.gradle.org/jetty_plugin. Anyway, is there any way to enable this on gradle?

like image 306
Piotr Kukielka Avatar asked Oct 30 '25 11:10

Piotr Kukielka


1 Answers

Heh, actually found it myself now.

Looks like this parameter is not needed at all. Hot deploy works anyway.

I just wasn't able to seen that because my vaadin application was keeping session even after F5. To restart it properly it's enough to add ?debug&restartApplication to the application url.

So, Ctrl+Shift+F9 in IntelliJ + F5 in the browser (with ?debug&restartApplication) works fine ;)

like image 70
Piotr Kukielka Avatar answered Nov 03 '25 00:11

Piotr Kukielka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!