org.codehaus.mojo.analytics
Class AbstractPostProcessMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
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 String |
encoding
Specifies the output encoding. |
protected File |
outputDirectory
Directory containing the generated project sites and report distributions. |
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 |
Methods inherited from interface org.apache.maven.plugin.Mojo |
execute |
encoding
protected String encoding
- Specifies the output encoding.
outputDirectory
protected File outputDirectory
- Directory containing the generated project sites and report distributions.
AbstractPostProcessMojo
public AbstractPostProcessMojo()
processChildrenHtml
protected void processChildrenHtml(File outputDirectory,
String toReplace,
String replaceWith)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
fileRead
protected String fileRead(File file)
throws IOException
- Throws:
IOException
fileWrite
protected void fileWrite(File fileName,
String data)
throws IOException
- Throws:
IOException
Copyright © 2011 Codehaus. All Rights Reserved.