5

Background: I have a gradle project, and I use jettyRun with success. I want Jetty to pick up code changes immediately without requiring a server bounce. Gradle supports hot deploy, and I understand that all I need to do is turn on "scanning", but I am not sure exactly what I need to do. Here's what I tried:

jettyRun {
    httpPort = 8989
    reload = 'automatic'
    scanIntervalSeconds = 2
    daemon = false 
}

Thanks.

4

1 回答 1

2

这就是它应该如何工作的方式。请记住,jetty 插件从“build”文件夹中获取资源,而不是从 src 文件夹中获取资源。

干杯,

勒内

于 2013-05-02T05:12:43.687 回答