简体   繁体   English

从命令行运行Groovy

[英]Running groovy from command line

When we run the groovy script from grrovyConsole,'Result' contains the value that we return in the script. 当我们从grrovyConsole运行groovy脚本时,“结果”包含我们在脚本中返回的值。

Can i get the Result value when running the script from command line? 从命令行运行脚本时可以获取结果值吗? if yes How? 如果是,如何?

只需在脚本末尾println结果值,它将被写入控制台。

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

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