org.codehaus.gmaven.filter
Class Site

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.gmaven.filter.Site
All Implemented Interfaces:
groovy.lang.GroovyObject, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class Site
extends org.apache.maven.plugin.AbstractMojo
implements groovy.lang.GroovyObject

This simply performs standard Maven filtering on /target/site. The result is in the same folder, so site:deploy works without a hitch. This is much simpler to use than the filtering mechanism built into the site plugin.

Author:
Jason Smith

Field Summary
protected  String encoding
          The character encoding scheme to be applied when filtering resources.
protected  String escapeString
          Expression preceded with the String won't be interpolated \${foo} will be replaced with ${foo}* @parameter expression="${maven.resources.escapeString}"
protected  org.apache.maven.shared.filtering.MavenResourcesFiltering mavenResourcesFiltering
          The filtering object.
protected  org.apache.maven.project.MavenProject project
          The project.
protected  org.apache.maven.execution.MavenSession session
          The current session.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
Site()
           
 
Method Summary
 void execute()
          Provides filtering for the site.
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String name)
           
 Object invokeMethod(String name, Object args)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 
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

project

protected org.apache.maven.project.MavenProject project
The project.


session

protected org.apache.maven.execution.MavenSession session
The current session.


mavenResourcesFiltering

protected org.apache.maven.shared.filtering.MavenResourcesFiltering mavenResourcesFiltering
The filtering object.


encoding

protected String encoding
The character encoding scheme to be applied when filtering resources.


escapeString

protected String escapeString
Expression preceded with the String won't be interpolated \${foo} will be replaced with ${foo}* @parameter expression="${maven.resources.escapeString}"

Constructor Detail

Site

public Site()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Provides filtering for the site.

Specified by:
execute in interface org.apache.maven.plugin.Mojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject


Copyright © 2006-2012 Codehaus. All Rights Reserved.