Grails 2.3 & GGTS 3.4 stop button not working

2019-04-09 06:11发布

How to stop grails processes in GGTS 3.4 with grails 2.3. the stop button of GGTS is not stopping the server running and the java.exe processes are still showing in task manager.

5条回答
放我归山
2楼-- · 2019-04-09 06:40

I am using GGTS 3.5.1, Grails 2.3.8, Java1.7 over Windows configuration the command is works for me "stop-app" and "run-app"

查看更多
一纸荒年 Trace。
3楼-- · 2019-04-09 06:41

Can you try to disable the "Keep external Grails running" option in Eclipse Preferences -> Groovy -> Grails -> Grails Launcher?

查看更多
萌系小妹纸
4楼-- · 2019-04-09 06:43

Unchecking the "Keep external Grails running" does not work for me. What I do is to hit the "Grails Command History" icon and type "stopApp" (or pick stopApp if previously typed). Once this commands finishes executing, then you can stop the Grails application using the stop button.

查看更多
Deceive 欺骗
5楼-- · 2019-04-09 06:59

Comment the grails.project.fork = [ .. ] part of your BuildConfig.groovy file.

This part enables running run-app, test-app and war in different threads(so you don't have to stop one to start the other), and it seems ggts isn't successfully destroying the thread right now.

For reference, here is the related issue in the ggts bug tracker https://issuetracker.springsource.com/browse/STS-3522

查看更多
太酷不给撩
6楼-- · 2019-04-09 07:06

Using Groovy Grails Tool Suite GGTS 3.4.0 on windows 64x. For my simple projects, the stop button works. For a bigger complex project, it does not. I use the "stop-app" (opposite of "run-app"). See: 2.8 Running an Application in the getting started guide. I think that in older versions of Grails ( < 2.x something) you had to create your own "stop-app" script. I think the newer 2.3.x has it built in.

查看更多
登录 后发表回答