Gradle Can';t使垂直x+;科特林+;格雷德尔热重部署工程

Gradle Can';t使垂直x+;科特林+;格雷德尔热重部署工程,gradle,kotlin,vert.x,Gradle,Kotlin,Vert.x,我刚开始研究vert.x,并从下载了一个示例restful项目。根据自述文件,当有任何文件更改时,它应该能够自动重新加载,但它似乎不起作用。无论我更改了多少次主类文件,它仍然无法反映出来。我所做的是: 运行“gradlew运行” 更改源文件,启动器能够检测到这些更改,并说它重新部署了Verticle Jan 08, 2018 7:16:46 PM io.vertx.core.impl.launcher.commands.Watcher INFO: Redeploying! Stopping ve

我刚开始研究vert.x,并从下载了一个示例restful项目。根据自述文件,当有任何文件更改时,它应该能够自动重新加载,但它似乎不起作用。无论我更改了多少次主类文件,它仍然无法反映出来。我所做的是:

运行“gradlew运行”

更改源文件,启动器能够检测到这些更改,并说它重新部署了Verticle

Jan 08, 2018 7:16:46 PM io.vertx.core.impl.launcher.commands.Watcher
INFO: Redeploying!
Stopping vert.x application '58d1ec56-6d4c-4209-9fba-71cd6f54101c-redeploy'
Application '58d1ec56-6d4c-4209-9fba-71cd6f54101c-redeploy' terminated with 
status 0
'.' is not recognized as an internal or external command,
operable program or batch file.
Jan 08, 2018 7:16:47 PM io.vertx.core.impl.launcher.commands.Watcher
INFO: User command terminated with status 1
Starting vert.x application...
58d1ec56-6d4c-4209-9fba-71cd6f54101c-redeploy
Jan 08, 2018 7:16:47 PM io.vertx.core.impl.launcher.commands.Watcher
INFO: Redeployment done in 966 ms.
Jan 08, 2018 7:16:48 PM 
io.vertx.core.impl.launcher.commands.VertxIsolatedDeployer
INFO: Succeeded in deploying verticle
但实际上它仍在运行旧代码

Jan 08, 2018 7:16:46 PM io.vertx.core.impl.launcher.commands.Watcher
INFO: Redeploying!
Stopping vert.x application '58d1ec56-6d4c-4209-9fba-71cd6f54101c-redeploy'
Application '58d1ec56-6d4c-4209-9fba-71cd6f54101c-redeploy' terminated with 
status 0
'.' is not recognized as an internal or external command,
operable program or batch file.
Jan 08, 2018 7:16:47 PM io.vertx.core.impl.launcher.commands.Watcher
INFO: User command terminated with status 1
Starting vert.x application...
58d1ec56-6d4c-4209-9fba-71cd6f54101c-redeploy
Jan 08, 2018 7:16:47 PM io.vertx.core.impl.launcher.commands.Watcher
INFO: Redeployment done in 966 ms.
Jan 08, 2018 7:16:48 PM 
io.vertx.core.impl.launcher.commands.VertxIsolatedDeployer
INFO: Succeeded in deploying verticle
我的问题是为了使它正常工作我需要做的任何事情。我花了一天时间浏览解决方案,但仍然无法通过它


非常感谢。

我也有同样的问题,但确切地说,有了这个帮助。我以帮助我重新部署(在windows上测试)的批处理文件结束

我的项目名为:testws,我的主垂直轴名为:MainVerticle请确保替换为您自己的

重新部署.bat

...  // rest of the file
task copyDependencies(type: Copy) {
  from configurations.default
  into 'build\\dependencies'
}
@echo关闭
SET LAUNCHER=“io.vertx.core.LAUNCHER”
SET VERTICLE=“juan.testws.MainVerticle”
SET CMD=“gradlew类”
调用gradlew copyDependencies
调用gradlew类
java-cp“build\dependencies\*;build\classes\kotlin\main”%LAUNCHER%运行^
%VERTICLE%--redeploy=“src\main\***”--重新部署时=%CMD%--启动器类=%launcher%
并增加了一个渐变任务

build.gradle

...  // rest of the file
task copyDependencies(type: Copy) {
  from configurations.default
  into 'build\\dependencies'
}

几乎相同的版本适用于java,只在文件中用“java”替换“kotlin”。

我对kotlin+vertx+gradle有完全相同的问题。非常奇怪的行为,但这似乎是kotlin中的一个vertx错误。你能在vertx示例repo中打开一个错误报告吗?别忘了提到它发生在Windows上