org.apache.maven.plugins.site
Class AbstractSiteMojo

java.lang.Object
  extended byorg.apache.maven.plugin.AbstractMojo
      extended byorg.apache.maven.plugins.site.AbstractSiteMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractSiteRenderingMojo, SiteDescriptorAttachMojo

public abstract class AbstractSiteMojo
extends org.apache.maven.plugin.AbstractMojo

Base class for site mojos.

Author:
Brett Porter

Field Summary
protected  org.codehaus.plexus.i18n.I18N i18n
          Internationalization.
protected  java.lang.String locales
          A comma separated list of locales supported by Maven.
protected  org.apache.maven.artifact.repository.ArtifactRepository localRepository
          The local repository.
protected  org.apache.maven.project.MavenProject project
          The maven project.
protected  java.util.List reactorProjects
          The reactor projects.
protected  java.io.File siteDirectory
          Directory containing the site.xml file and the source for apt, fml and xdoc docs.
protected  org.apache.maven.doxia.tools.SiteTool siteTool
          SiteTool.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractSiteMojo()
           
 
Method Summary
protected  java.lang.String getInputEncoding()
          Gets the input files encoding.
protected  java.lang.String getOutputEncoding()
          Gets the effective reporting output files encoding.
protected  void populateReportItems(org.apache.maven.doxia.site.decoration.DecorationModel decorationModel, java.util.Locale locale, java.util.Map reportsByOutputName)
           
protected static java.lang.String toRelative(java.io.File basedir, java.lang.String absolutePath)
          TODO should be removed see PLXUTILS-61
 
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
 

Field Detail

locales

protected java.lang.String locales
A comma separated list of locales supported by Maven. The first valid token will be the default Locale for this instance of the Java Virtual Machine.

Is defined by:
expression:
${locales}

siteTool

protected org.apache.maven.doxia.tools.SiteTool siteTool
SiteTool.

Is a Plexus component defined by:

i18n

protected org.codehaus.plexus.i18n.I18N i18n
Internationalization.

Is a Plexus component defined by:

siteDirectory

protected java.io.File siteDirectory
Directory containing the site.xml file and the source for apt, fml and xdoc docs.

Is defined by:
expression:
${basedir}/src/site
Is required.

project

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

Is defined by:
expression:
${project}
Is readonly.
Is required.

localRepository

protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
The local repository.

Is defined by:
expression:
${localRepository}

reactorProjects

protected java.util.List reactorProjects
The reactor projects.

Is defined by:
expression:
${reactorProjects}
Is readonly.
Is required.
Constructor Detail

AbstractSiteMojo

public AbstractSiteMojo()
Method Detail

getInputEncoding

protected java.lang.String getInputEncoding()
Gets the input files encoding.

Returns:
The input files encoding, never null.

getOutputEncoding

protected java.lang.String getOutputEncoding()
Gets the effective reporting output files encoding.

Returns:
The effective reporting output file encoding, never null.

populateReportItems

protected void populateReportItems(org.apache.maven.doxia.site.decoration.DecorationModel decorationModel,
                                   java.util.Locale locale,
                                   java.util.Map reportsByOutputName)

toRelative

protected static java.lang.String toRelative(java.io.File basedir,
                                             java.lang.String absolutePath)
TODO should be removed see PLXUTILS-61

Parameters:
basedir -
absolutePath -
Returns:


Copyright © 2002-2009 The Apache Software Foundation. All Rights Reserved.