maven-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=644528&view=rev
Log:
[MSITE-313] Use proper file encoding when storing site descriptor in local repo

Modified:
    maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteDescriptorArtifactMetadata.java

Modified: maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteDescriptorArtifactMetadata.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteDescriptorArtifactMetadata.java?rev=644528&r1=644527&r2=644528&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteDescriptorArtifactMetadata.java
(original)
+++ maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/SiteDescriptorArtifactMetadata.java
Thu Apr  3 15:03:15 2008
@@ -27,9 +27,9 @@
 import org.apache.maven.doxia.site.decoration.DecorationModel;
 import org.apache.maven.doxia.site.decoration.io.xpp3.DecorationXpp3Writer;
 import org.codehaus.plexus.util.IOUtil;
+import org.codehaus.plexus.util.WriterFactory;
 
 import java.io.File;
-import java.io.FileWriter;
 import java.io.IOException;
 import java.io.Writer;
 
@@ -80,7 +80,7 @@
         Writer writer = null;
         try
         {
-            writer = new FileWriter( destination );
+            writer = WriterFactory.newXmlWriter( destination );
             new DecorationXpp3Writer().write( writer, decoration );
         }
         catch ( IOException e )



Mime
View raw message