maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r701637 - /maven/plugins/trunk/maven-antrun-plugin/src/it/ant-1.7-features/verify.bsh
Date Sat, 04 Oct 2008 12:42:57 GMT
Author: bentmann
Date: Sat Oct  4 05:42:57 2008
New Revision: 701637

URL: http://svn.apache.org/viewvc?rev=701637&view=rev
Log:
o Fixed encoding handling

Modified:
    maven/plugins/trunk/maven-antrun-plugin/src/it/ant-1.7-features/verify.bsh

Modified: maven/plugins/trunk/maven-antrun-plugin/src/it/ant-1.7-features/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-antrun-plugin/src/it/ant-1.7-features/verify.bsh?rev=701637&r1=701636&r2=701637&view=diff
==============================================================================
--- maven/plugins/trunk/maven-antrun-plugin/src/it/ant-1.7-features/verify.bsh (original)
+++ maven/plugins/trunk/maven-antrun-plugin/src/it/ant-1.7-features/verify.bsh Sat Oct  4
05:42:57 2008
@@ -1,11 +1,12 @@
 import java.io.*;
+import org.codehaus.plexus.util.*;
 import org.custommonkey.xmlunit.*;
 try
 {
     File actual = new File( basedir, "echo.xml" );
     File expected = new File( basedir, "echo.xml.expected" );
-    FileReader actualReader = new FileReader(actual);
-    FileReader expectedReader = new FileReader(expected);
+    Reader actualReader = ReaderFactory.newXmlReader(actual);
+    Reader expectedReader = ReaderFactory.newXmlReader(expected);
     XMLAssert.assertXMLEqual(expectedReader, actualReader);
     return true;
 }



Mime
View raw message