net.sf.xsltmp
Class ManyToDynamicMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
net.sf.xsltmp.XsltGeneratorBase
net.sf.xsltmp.FromManyBase
net.sf.xsltmp.ManyToManyBase
net.sf.xsltmp.ManyToDynamicMojo
- All Implemented Interfaces:
- XsltGeneratorConstants, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class ManyToDynamicMojo
- extends ManyToManyBase
Perform XSL transformation of multiple source files into destination files
created dynamically by the template.
For each source file, the template is supposed to create destination files
dynamically using the xsl:result-document command.
The default output of the template is directed to a file which is deleted
after processing.
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
|
Method Summary |
protected void |
cleanAfterFileTransformation(File destFile)
Perform any clean-up after a source file has been transformed into the
given destination file. |
protected File |
getDestFile(String sourceFile)
Return the destination file for a given source file name. |
protected String |
getMojoName()
Return the name of the mojo. |
protected boolean |
shouldSkip(File srcFile,
File destFile)
Return true iff the transformation from the given source file to the
given destination file should be skipped. |
| Methods inherited from class net.sf.xsltmp.FromManyBase |
ensureDestFileDirExists, getResolver, getSourceFile, getSourceFiles, getSrcDir, getSrcExcludes, getSrcIncludes, logExecution, setSrcDir, setSrcExcludes, setSrcIncludes, verifySrcDirExist |
| Methods inherited from class net.sf.xsltmp.XsltGeneratorBase |
getArchiverManager, getFilter, getFilterParameters, getForce, getHelper, getLogPrefix, getParameters, getProject, getSourceEncoding, getTimestamp, getTransformer, getXslFile, getXslTemplate, hasChanged, setArchiverManager, setFilter, setFilterParameters, setForce, setParameters, setProject, setSourceEncoding, setXslTemplate, verifyXsltFileExist |
| 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 |
ManyToDynamicMojo
public ManyToDynamicMojo()
getMojoName
protected String getMojoName()
- Description copied from class:
XsltGeneratorBase
- Return the name of the mojo.
For logging purposes.
- Specified by:
getMojoName in class XsltGeneratorBase
- Returns:
- String
getDestFile
protected File getDestFile(String sourceFile)
- Description copied from class:
ManyToManyBase
- Return the destination file for a given source file name.
- Specified by:
getDestFile in class ManyToManyBase
- Returns:
- File
shouldSkip
protected boolean shouldSkip(File srcFile,
File destFile)
- Description copied from class:
ManyToManyBase
- Return true iff the transformation from the given source file to the
given destination file should be skipped.
- Specified by:
shouldSkip in class ManyToManyBase
- Returns:
- boolean
cleanAfterFileTransformation
protected void cleanAfterFileTransformation(File destFile)
- Description copied from class:
ManyToManyBase
- Perform any clean-up after a source file has been transformed into the
given destination file.
- Overrides:
cleanAfterFileTransformation in class ManyToManyBase
Copyright © 2008-2010 SEAF. All Rights Reserved.