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:
Vincent Siveton 2005-08-11 12:28:52 +00:00
parent 2c9f839105
commit a133047280
2 changed files with 12 additions and 1 deletions

View File

@ -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 );

View File

@ -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">