Replaced UTF-8 by outputEncoding variable

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@328194 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Vincent Siveton 2005-10-25 00:18:53 +00:00
parent f8608fce7d
commit bd4386066e
1 changed files with 7 additions and 9 deletions

View File

@ -81,7 +81,7 @@ public class SiteMojo
* @required
*/
private File siteDirectory;
/**
* Alternative directory for xdoc source, useful for m1 to m2 migration
*
@ -284,7 +284,7 @@ public class SiteMojo
if ( !locale.getLanguage().equals( defaultLocale.getLanguage() ) )
{
siteDirectoryFile = new File( siteDirectory, locale.getLanguage() );
xdocDirectoryFile = new File( xdocDirectory, locale.getLanguage() );
}
@ -361,16 +361,16 @@ public class SiteMojo
if( xdocDirectory.exists() )
{
File[] fileNames = xdocDirectoryFile.listFiles();
if( fileNames.length > 0 )
{
XdocSiteModule xdoc = new XdocSiteModule();
siteRenderer.render( xdocDirectoryFile, outputDirectory, xdoc.getSourceDirectory(), xdoc.getExtension(), xdoc.getParserId(),
siteDescriptor, template, attributes, locale, "UTF-8" );
siteRenderer.render( xdocDirectoryFile, outputDirectory, xdoc.getSourceDirectory(), xdoc.getExtension(), xdoc.getParserId(),
siteDescriptor, template, attributes, locale, outputEncoding );
}
}
copyResources( outputDirectory );
// Copy site resources
@ -413,8 +413,6 @@ public class SiteMojo
{
siteRenderer.render( generatedSiteDirectory, outputDirectory, siteDescriptor, template, attributes,
locale );
}
}
}