简体   繁体   English

如何停止在netbeans IDE下运行ratpack?

[英]How to stop ratpack run under netbeans IDE?

Problem: 问题:

After starting ratpack application under netbeans IDE there's no way to stop it. 在netbeans IDE下启动ratpack应用程序后,无法停止它。

Steps to reproduce 重现步骤

  1. Checkout project: https://github.com/akhikhl/ratpack-helloworld.git 结帐项目: https : //github.com/akhikhl/ratpack-helloworld.git

  2. Start netbeans 7.4 (Gradle Support IDE plugin must be installed) 启动netbeans 7.4(必须安装Gradle Support IDE插件)

  3. Open project ratpack-helloworld 打开项目ratpack-helloworld

  4. Invoke menu command "Run/Run Project" - gradle task starts nicely, app waits on port 5050. 调用菜单命令“运行/运行项目”-gradle任务启动良好,应用程序在端口5050上等待。

  5. Now try to stop it: 现在尝试停止它:

    • There's no task for stopping ratpack app 没有停止Ratpack App的任务
    • Ctrl+Break has no effect Ctrl + Break无效
    • menu command "Run/Stop Buid/Run..." has no effect 菜单命令“运行/停止运行/运行...”无效
    • when clicking "Cancel Running Task button, IDE asks "Are you sure you want to cancel...", then it reports "Build failure", but run task is still running. 单击“取消正在运行的任务”按钮时,IDE会询问“您确定要取消...”,然后报告“生成失败”,但运行任务仍在运行。

Workaround 解决方法

Restarting IDE kind of solves the problem, but eliminates fun factor from using ratpack. 重新启动IDE可以解决此问题,但消除了使用ratpack带来的乐趣。

Question

Any ideas on how to stop ratpack under netbeans the legitimate way? 关于如何以合法方式在netbeans下停止ratpack的任何想法?

You can use the [X] button in the bottom bar to cancel the gradle run task. 您可以使用底部栏中的[X]按钮来取消gradle运行任务。 摇篮网豆

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM