8 lines
No EOL
261 B
Groovy
8 lines
No EOL
261 B
Groovy
|
|
def substitute(String filepath, String pattern, String subst) {
|
|
fileText = readFile(file: filepath, encoding: 'UTF-8')
|
|
def converted = fileText.replaceAll(pattern, subst)
|
|
writeFile(file: filepath, text: converted, encoding: 'UTF-8')
|
|
}
|
|
|
|
return this; |