}
private void writeReport( final File outputDirectory,
final Report report ) throws PMDException
{
final HTMLRenderer renderer = new HTMLRenderer( "", "" );
try
{
final FileWriter fileWriter = new FileWriter( new File( outputDirectory.getAbsolutePath()
+ "/" + FlexPMDFormat.HTML.toString() ) );
renderer.render( fileWriter,
report );
renderer.getWriter().flush();
fileWriter.close();
}
catch ( final IOException e )
{
throw new PMDException( "unable to write the HTML report", e );