net.sf.xsltmp
Class ManyToManyMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
net.sf.xsltmp.XsltGeneratorBase
net.sf.xsltmp.FromManyBase
net.sf.xsltmp.ManyToManyBase
net.sf.xsltmp.ManyToManyMojo
- All Implemented Interfaces:
- XsltGeneratorConstants, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class ManyToManyMojo
- extends ManyToManyBase
Perform XSL transformation of multiple source files with destination files
created 1:1.
Each source file is transformed into a single destination file, preserving
the directory structure. The destination directory tree is created based on
the source directory tree.
Files with up-to-date timestamp are skipped.
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
|
Method Summary |
protected java.io.File |
getDestFile(java.lang.String sourceFile)
Return the destination file for a given source file name. |
java.lang.String |
getFileNameRegex()
|
java.lang.String |
getFileNameReplacement()
|
protected java.lang.String |
getMojoName()
Return the name of the mojo. |
void |
setFileNameRegex(java.lang.String fileNameRegex)
|
void |
setFileNameReplacement(java.lang.String fileNameReplacement)
|
protected boolean |
shouldSkip(java.io.File srcFile,
java.io.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, getForce, getHelper, getLogPrefix, getParameters, getProject, getTimestamp, getTransformer, getXslFile, getXslTemplate, isUpToDate, setArchiverManager, setForce, setParameters, setProject, 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 |
ManyToManyMojo
public ManyToManyMojo()
getFileNameRegex
public java.lang.String getFileNameRegex()
setFileNameRegex
public void setFileNameRegex(java.lang.String fileNameRegex)
getFileNameReplacement
public java.lang.String getFileNameReplacement()
setFileNameReplacement
public void setFileNameReplacement(java.lang.String fileNameReplacement)
getMojoName
protected java.lang.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 java.io.File getDestFile(java.lang.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(java.io.File srcFile,
java.io.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
Copyright © 2008-2010 SEAF. All Rights Reserved.