org.apache.maven.plugins.linkcheck
Class SiteInvoker

java.lang.Object
  extended by org.apache.maven.plugins.linkcheck.SiteInvoker

public class SiteInvoker
extends java.lang.Object

Since:
1.1
Author:
ltheussl

Constructor Summary
SiteInvoker(org.apache.maven.artifact.repository.ArtifactRepository localRepository, org.apache.maven.plugin.logging.Log log)
           
 
Method Summary
 void invokeSite(org.apache.maven.project.MavenProject project, java.io.File tmpReportingOutputDirectory)
          Invoke Maven for the site phase for a temporary Maven project using tmpReportingOutputDirectory as ${project.reporting.outputDirectory}.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiteInvoker

public SiteInvoker(org.apache.maven.artifact.repository.ArtifactRepository localRepository,
                   org.apache.maven.plugin.logging.Log log)
Method Detail

invokeSite

public void invokeSite(org.apache.maven.project.MavenProject project,
                       java.io.File tmpReportingOutputDirectory)
                throws java.io.IOException
Invoke Maven for the site phase for a temporary Maven project using tmpReportingOutputDirectory as ${project.reporting.outputDirectory}. This is a workaround to be sure that all site files have been correctly generated.
Note 1: the Maven Home should be defined in the maven.home Java system property or defined in M2_HOME system env variables. Note 2: we can't use siteOutputDirectory param from site plugin because some plugins ${project.reporting.outputDirectory} in their conf.

Parameters:
project - the MavenProject to invoke the site on. Not null.
tmpReportingOutputDirectory - not null
Throws:
java.io.IOException - if any


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.