2017-08-04 78 views

回答

0

您可以使用GroovyShell来评估您的脚本。

GroovyShell shell = new GroovyShell() def execute = shell.parse(new File('/path/to/abc.groovy')) execute.method()

相关问题