org.jboss.maven.plugins.jdocbook
Class ResourceMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.jboss.maven.plugins.jdocbook.AbstractDocBookMojo
          extended by org.jboss.maven.plugins.jdocbook.ResourceMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class ResourceMojo
extends AbstractDocBookMojo

This mojo's responsibility within the plugin/packaging is to process resources defined by various inputs, moving them into a staging directory for use during XSLT processing. This is needed because the DocBook XSLT only allow defining a single img.src.path value; FOP only allows a single fontBaseDir value; etc.

Author:
Steve Ebersole

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.maven.plugins.jdocbook.AbstractDocBookMojo
AbstractDocBookMojo.ArtifactProcessor
 
Field Summary
 
Fields inherited from class org.jboss.maven.plugins.jdocbook.AbstractDocBookMojo
archiverManager, cssDirectory, fontConfig, fontsDirectory, formats, imagesDirectory, masterTranslationArtifactId, masterTranslationFile, options, PLUGIN_NAME, pluginArtifacts, project, projectArtifacts, projectHelper, siteRenderer, sourceDirectory, sourceDocumentName, stagingDirectory, targetDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ResourceMojo()
           
 
Method Summary
protected  void process(Formatting[] formattings)
          The override method to perform the actual processing of the mojo.
protected  void processDependencySupportArtifact(java.io.File file, java.io.File target)
           
 
Methods inherited from class org.jboss.maven.plugins.jdocbook.AbstractDocBookMojo
execute, processArtifacts, processPluginArtifacts, processProjectArtifacts
 
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
 

Constructor Detail

ResourceMojo

public ResourceMojo()
Method Detail

process

protected void process(Formatting[] formattings)
                throws RenderingException,
                       XSLTException
Description copied from class: AbstractDocBookMojo
The override method to perform the actual processing of the mojo.

Specified by:
process in class AbstractDocBookMojo
Parameters:
formattings - The fomattings configured for render
Throws:
RenderingException - Indicates problem performing rendering
XSLTException - Indicates problem building or executing XSLT transformer

processDependencySupportArtifact

protected void processDependencySupportArtifact(java.io.File file,
                                                java.io.File target)
                                         throws RenderingException
Throws:
RenderingException


Copyright © 2007 JBoss, a division of Red Hat, Inc. All Rights Reserved.