groovy 替换文件指定内容 替换指定文件的部分内容脚本 static def replaceFileText(file, oldText, newText) { String text = file.text.replaceAll(oldText, newText) file.withPrintWriter { printWriter -> printWr