GIS-7717 GIS-7718 - Text substitution correction
This commit is contained in:
parent
3cbc5bbf93
commit
dad17a4f5a
1 changed files with 2 additions and 2 deletions
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
def substitute(String filepath, String pattern, String subst) {
|
||||
fileText = readFile(filepath)
|
||||
fileText = readFile(file: filepath, encoding: 'UTF-8')
|
||||
def converted = fileText.replaceAll(pattern, subst)
|
||||
writeFile(file: filepath, text: converted)
|
||||
writeFile(file: filepath, text: converted, encoding: 'UTF-8')
|
||||
}
|
||||
|
||||
return this;
|
||||
Loading…
Add table
Add a link
Reference in a new issue