org.codehaus.mojo.analytics
Class AbstractPostProcessMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.analytics.AbstractPostProcessMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
InjectAnalyticsMojo, PostProcessMojo

public abstract class AbstractPostProcessMojo
extends org.apache.maven.plugin.AbstractMojo

Allows postprocessing the the generated website. Ought to be executed after site:site and before site:deploy, or added to the site phase.

Author:
mkleint@codehaus.org

Field Summary
protected  java.lang.String encoding
          Specifies the output encoding.
protected  java.io.File outputDirectory
          Directory containing the generated project sites and report distributions.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractPostProcessMojo()
           
 
Method Summary
protected  java.lang.String fileRead(java.io.File file)
           
protected  void fileWrite(java.io.File fileName, java.lang.String data)
           
protected  void processChildrenHtml(java.io.File outputDirectory, java.lang.String toReplace, java.lang.String replaceWith)
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Field Detail

encoding

protected java.lang.String encoding
Specifies the output encoding.


outputDirectory

protected java.io.File outputDirectory
Directory containing the generated project sites and report distributions.

Constructor Detail

AbstractPostProcessMojo

public AbstractPostProcessMojo()
Method Detail

processChildrenHtml

protected void processChildrenHtml(java.io.File outputDirectory,
                                   java.lang.String toReplace,
                                   java.lang.String replaceWith)
                            throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

fileRead

protected java.lang.String fileRead(java.io.File file)
                             throws java.io.IOException
Throws:
java.io.IOException

fileWrite

protected void fileWrite(java.io.File fileName,
                         java.lang.String data)
                  throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.