|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

I think it is an encoding issue of the new file
You can try this script:
def encoding = System.getProperty("file.encoding")
new File('fitnesse_tmp_result.xml').withReader(encoding) { reader ->
new File('fitnesse_result.xml').withWriter(encoding) { writer ->
def found = 0;
while ((line = reader.readLine()) != null) { if(line == "<?xml version=\"1.0\"?>" && ++found == 2) break writer.writeLine(line) }
}}
If it doesn't work, you can try to set directly the encoding variable to the real file endoding of fitnesse_tmp_result.xml, e.g. def encoding = "UTF-8"