Index: ./src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.java
===================================================================
RCS file: /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.java,v
retrieving revision 1.3
diff -u -r1.3 XMLResultAggregator.java
--- ./src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.java	2001/06/21 15:21:00	1.3
+++ ./src/main/org/apache/tools/ant/taskdefs/optional/junit/XMLResultAggregator.java	2001/07/11 13:00:09
@@ -56,6 +56,7 @@
 import java.io.File;
 import java.io.IOException;
 import java.io.OutputStream;
+import java.io.OutputStreamWriter;
 import java.io.PrintWriter;
 import java.io.StringWriter;
 import java.io.FileOutputStream;
@@ -100,21 +101,19 @@
     
     /** the directory to write the file to */
     protected File toDir;
-    
-    protected Vector transformers = new Vector();
-    
+       
     /** the default directory: <tt>.</tt>. It is resolved from the project directory */
     public final static String DEFAULT_DIR = ".";
     
     /** the default file name: <tt>TESTS-TestSuites.xml</tt> */
     public final static String DEFAULT_FILENAME = "TESTS-TestSuites.xml";
-    
     
+    /*
     public AggregateTransformer createReport(){
         AggregateTransformer transformer = new AggregateTransformer(this);
         transformers.addElement(transformer);
         return transformer;
-    }
+    }*/
     
     /**
      * Set the name of the file aggregating the results. It must be relative
@@ -160,14 +159,6 @@
         } catch (IOException e){
             throw new BuildException("Unable to write test aggregate to '" + destFile + "'", e);
         }
-        // apply transformation
-        Enumeration enum = transformers.elements();
-        while (enum.hasMoreElements()) {
-            AggregateTransformer transformer =
-                (AggregateTransformer) enum.nextElement();
-            transformer.setXmlDocument(rootElement.getOwnerDocument());
-            transformer.transform();
-        }
     }
     
     /**
@@ -221,15 +212,11 @@
      */
     protected void writeDOMTree(Document doc, File file) throws IOException {
         OutputStream out = new FileOutputStream( file );
-        PrintWriter wri = new PrintWriter(out);
+        OutputStreamWriter wri = new OutputStreamWriter(out, "UTF8");
         wri.write("<?xml version=\"1.0\"?>\n");
         (new DOMElementWriter()).write(doc.getDocumentElement(), wri, 0, "  ");
         wri.flush();
         wri.close();
-        // writers do not throw exceptions, so check for them.
-        if (wri.checkError()){
-            throw new IOException("Error while writing DOM content");
-        }
     }
     
     /**

The command completed successfully.
