org.codehaus.mojo.analytics
Class PostProcessMojo

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

public class PostProcessMojo
extends AbstractPostProcessMojo

Goal that injects any html snippet into the generated website. Requires a certain token to be present in the generated website with gets replaced by the html snippet. Ought to be executed after site:site and before site:deploy, or added to the site phase.

Author:
mkleint@codehaus.org

Field Summary
protected  File replaceContent
          The content of the file will replace the token in the generated web site files.
protected  String token
          Teh token present in generated website to be replaced by the new content.
 
Fields inherited from class org.codehaus.mojo.analytics.AbstractPostProcessMojo
encoding, outputDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
PostProcessMojo()
           
 
Method Summary
 void execute()
           
 
Methods inherited from class org.codehaus.mojo.analytics.AbstractPostProcessMojo
fileRead, fileWrite, processChildrenHtml
 
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
 

Field Detail

token

protected String token
Teh token present in generated website to be replaced by the new content.


replaceContent

protected File replaceContent
The content of the file will replace the token in the generated web site files.

Constructor Detail

PostProcessMojo

public PostProcessMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2011 Codehaus. All Rights Reserved.