maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r644529 - /maven/plugins/trunk/maven-site-plugin/src/test/java/org/apache/maven/plugins/site/stubs/SiteMavenProjectStub.java
Date Thu, 03 Apr 2008 22:05:17 GMT
Author: bentmann
Date: Thu Apr  3 15:05:16 2008
New Revision: 644529

URL: http://svn.apache.org/viewvc?rev=644529&view=rev
Log:
o Fixed file encoding for POM reader

Modified:
    maven/plugins/trunk/maven-site-plugin/src/test/java/org/apache/maven/plugins/site/stubs/SiteMavenProjectStub.java

Modified: maven/plugins/trunk/maven-site-plugin/src/test/java/org/apache/maven/plugins/site/stubs/SiteMavenProjectStub.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/test/java/org/apache/maven/plugins/site/stubs/SiteMavenProjectStub.java?rev=644529&r1=644528&r2=644529&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/test/java/org/apache/maven/plugins/site/stubs/SiteMavenProjectStub.java
(original)
+++ maven/plugins/trunk/maven-site-plugin/src/test/java/org/apache/maven/plugins/site/stubs/SiteMavenProjectStub.java
Thu Apr  3 15:05:16 2008
@@ -20,12 +20,12 @@
  */
 
 import java.io.File;
-import java.io.FileReader;
 import java.util.Properties;
 
 import org.apache.maven.model.Model;
 import org.apache.maven.model.io.xpp3.MavenXpp3Reader;
 import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
+import org.codehaus.plexus.util.ReaderFactory;
 
 /**
  * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
@@ -41,8 +41,8 @@
 
         try
         {
-            model = pomReader.read( new FileReader( new File( getBasedir(),
-                                                              "/src/test/resources/unit/interpolated-site/pom.xml"
) ) );
+            File pomFile = new File( getBasedir(), "/src/test/resources/unit/interpolated-site/pom.xml"
);
+            model = pomReader.read( ReaderFactory.newXmlReader( pomFile ) );
             setModel( model );
         }
         catch ( Exception e )



Mime
View raw message