org.codehaus.mojo.analytics
Class PostProcessMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.analytics.AbstractPostProcessMojo
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 java.io.File |
replaceContent
The content of the file will replace the token in the generated web site files. |
protected java.lang.String |
token
Teh token present in generated website to be replaced by the new content. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
token
protected java.lang.String token
- Teh token present in generated website to be replaced by the new content.
replaceContent
protected java.io.File replaceContent
- The content of the file will replace the token in the generated web site files.
PostProcessMojo
public PostProcessMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2009. All Rights Reserved.