|
|
@@ -1,7 +1,7 @@ |
|
|
|
/* |
|
|
|
* The Apache Software License, Version 1.1 |
|
|
|
* |
|
|
|
* Copyright (c) 2001-2002 The Apache Software Foundation. All rights |
|
|
|
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights |
|
|
|
* reserved. |
|
|
|
* |
|
|
|
* Redistribution and use in source and binary forms, with or without |
|
|
@@ -53,6 +53,7 @@ |
|
|
|
*/ |
|
|
|
package org.apache.tools.ant.taskdefs.optional.junit; |
|
|
|
|
|
|
|
import java.io.BufferedOutputStream; |
|
|
|
import java.io.File; |
|
|
|
import java.io.FileOutputStream; |
|
|
|
import java.io.IOException; |
|
|
@@ -228,7 +229,7 @@ public class XMLResultAggregator extends Task implements XMLConstants { |
|
|
|
OutputStream out = null; |
|
|
|
PrintWriter wri = null; |
|
|
|
try { |
|
|
|
out = new FileOutputStream(file); |
|
|
|
out = new BufferedOutputStream(new FileOutputStream(file)); |
|
|
|
wri = new PrintWriter(new OutputStreamWriter(out, "UTF8")); |
|
|
|
wri.write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"); |
|
|
|
(new DOMElementWriter()).write(doc.getDocumentElement(), wri, 0, " "); |
|
|
|