You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2008/08/05 22:02:48 UTC
svn commit: r682912 -
/maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarManifestMojo.java
Author: hboutemy
Date: Tue Aug 5 13:02:48 2008
New Revision: 682912
URL: http://svn.apache.org/viewvc?rev=682912&view=rev
Log:
fixed encoding used to write the manifest: UTF-8 instead of platform encoding
Modified:
maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarManifestMojo.java
Modified: maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarManifestMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarManifestMojo.java?rev=682912&r1=682911&r2=682912&view=diff
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarManifestMojo.java (original)
+++ maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarManifestMojo.java Tue Aug 5 13:02:48 2008
@@ -26,9 +26,9 @@
import org.codehaus.plexus.archiver.jar.ManifestException;
import org.codehaus.plexus.archiver.war.WarArchiver;
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.PrintWriter;
@@ -75,7 +75,7 @@
try
{
Manifest mf = ma.getManifest( getProject(), getArchive().getManifest() );
- printWriter = new PrintWriter( new FileWriter( manifestFile ) );
+ printWriter = new PrintWriter( WriterFactory.newWriter( manifestFile, WriterFactory.UTF_8 ) );
mf.write( printWriter );
}
catch ( ManifestException e )