mirror of https://github.com/apache/maven.git
MNG-722: added a new outputEncoding parameter in the DoxiaMojo class. Updated the maven-site.vm
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@231433 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2c9f839105
commit
a133047280
|
@ -155,6 +155,12 @@ public class DoxiaMojo
|
|||
*/
|
||||
private boolean addModules;
|
||||
|
||||
/**
|
||||
* @parameter expression="${outputEncoding}"
|
||||
* default-value="ISO-8859-1"
|
||||
*/
|
||||
private String outputEncoding;
|
||||
|
||||
/**
|
||||
* @parameter expression="${component.org.codehaus.plexus.siterenderer.Renderer}"
|
||||
* @required
|
||||
|
@ -238,6 +244,11 @@ public class DoxiaMojo
|
|||
attributes.put( "project", project );
|
||||
}
|
||||
|
||||
if ( attributes.get( "outputEncoding" ) == null )
|
||||
{
|
||||
attributes.put( "outputEncoding", outputEncoding );
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
categorizeReports( reports );
|
||||
|
|
|
@ -139,7 +139,7 @@
|
|||
#foreach( $author in $authors )
|
||||
<meta name="author" content="$author" />
|
||||
#end
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" />
|
||||
</head>
|
||||
<body class="composite">
|
||||
<div id="banner">
|
||||
|
|
Loading…
Reference in New Issue