开发者

Groovyscript grails system commands

Is there a possibility of running my "grails run-app" command from my groovy script? I tried "cmd /c dir".execute() and it was working but "cmd /c grails run-app" 开发者_如何学Cdoesn't seem to work :( Can anybody help me? I dont know how to see the output too :(


I'm pretty sure the best way of doing this is not via the system command line.

The grails commands are actually Groovy scripts with the prefix "_Grails" and found in the scripts directory of the Grails installation. You should be able to run those Groovy scripts programmatically from your code without going through the command line, but I am not sure what's the best way to get at them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜