idea live templates groovyScript("", [arg,...])使用
1. // 输出class groovyScript("def className = \"${_1}\"; def result = ' * @Class : ' + className + '\\n'; return result;", className())
2. 执行groovy脚本文件
groovyScript("D:/study/github/li_groovy/src/com/lili/test.groovy",className(),currentPackage(),date())
脚本内容
def ff = _1
def pack = _2
def p = _3
def result = ''
result += "classname=" + ff + " --- packageName=" + pack
return result