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/05/18 22:21:24 UTC
svn commit: r657630 -
/maven/jxr/trunk/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AbstractJxrReport.java
Author: hboutemy
Date: Sun May 18 13:21:24 2008
New Revision: 657630
URL: http://svn.apache.org/viewvc?rev=657630&view=rev
Log:
[JXR-62] made file encoding default to platform encoding
Modified:
maven/jxr/trunk/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AbstractJxrReport.java
Modified: maven/jxr/trunk/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AbstractJxrReport.java
URL: http://svn.apache.org/viewvc/maven/jxr/trunk/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AbstractJxrReport.java?rev=657630&r1=657629&r2=657630&view=diff
==============================================================================
--- maven/jxr/trunk/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AbstractJxrReport.java (original)
+++ maven/jxr/trunk/maven-jxr-plugin/src/main/java/org/apache/maven/plugin/jxr/AbstractJxrReport.java Sun May 18 13:21:24 2008
@@ -39,7 +39,6 @@
import org.apache.maven.reporting.AbstractMavenReport;
import org.apache.maven.reporting.MavenReportException;
import org.codehaus.plexus.util.FileUtils;
-import org.codehaus.plexus.util.ReaderFactory;
import org.codehaus.plexus.util.StringUtils;
/**
@@ -240,16 +239,6 @@
}
/**
- * Gets the source file encoding.
- *
- * @return The source file encoding, never <code>null</code>.
- */
- protected String getInputEncoding()
- {
- return ( inputEncoding == null ) ? ReaderFactory.ISO_8859_1 : inputEncoding;
- }
-
- /**
* Creates the Xref for the Java files found in the given source directory and puts
* them in the given destination directory.
*
@@ -265,7 +254,7 @@
{
JXR jxr = new JXR();
jxr.setDest( destinationDirectory );
- jxr.setInputEncoding( getInputEncoding() );
+ jxr.setInputEncoding( inputEncoding );
jxr.setLocale( locale );
jxr.setLog( new PluginLogAdapter( getLog() ) );
jxr.setOutputEncoding( outputEncoding );