org.codehaus.mojo.analytics
Class InjectAnalyticsMojo

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

public class InjectAnalyticsMojo
extends AbstractPostProcessMojo

Goal that injects Google analytics script into 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 id
          Google analytics token to inject into site.
 
Fields inherited from class org.codehaus.mojo.analytics.AbstractPostProcessMojo
encoding, outputDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
InjectAnalyticsMojo()
           
 
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

id

protected java.lang.String id
Google analytics token to inject into site.

Constructor Detail

InjectAnalyticsMojo

public InjectAnalyticsMojo()
Method Detail

execute

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


Copyright © 2009. All Rights Reserved.