PR: MPCHANGES-32
The encoding of the changes.xml file is not preserved after doing release-version. New property maven.changes.outputencoding. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@434555 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -120,7 +120,18 @@ public class ReleaseVersion
|
||||
format.setIndentSize( 2 );
|
||||
format.setNewlines( true );
|
||||
format.setTrimText( true );
|
||||
format.setEncoding( encoding );
|
||||
if ( encoding == null || "".equals( encoding ) )
|
||||
{
|
||||
String docsEncoding = doc.getXMLEncoding();
|
||||
if ( docsEncoding != null )
|
||||
{
|
||||
format.setEncoding( docsEncoding );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
format.setEncoding( encoding );
|
||||
}
|
||||
|
||||
XMLWriter writer = new XMLWriter( format );
|
||||
writer.setOutputStream( os );
|
||||
|
||||
Reference in New Issue
Block a user