org.xins.common.ant
Class XsltPlusTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
org.apache.tools.ant.taskdefs.XSLTProcess
org.xins.common.ant.XsltPlusTask
- All Implemented Interfaces:
- Cloneable, SelectorContainer, XSLTLogger
- public class XsltPlusTask
- extends XSLTProcess
Apache Ant task similar to the <xslt> task with the option that allow to never
overwrite the destination.
- Since:
- XINS 2.1
- Version:
- $Revision: 1.5 $ $Date: 2008/07/04 10:22:41 $
- Author:
- Anthony Goubard
Method Summary |
void |
addMapper(Mapper mapper)
Sets the mapper. |
void |
execute()
Called by the project to let the task do its work. |
void |
setDestdir(File destDir)
Sets the destination directory. |
void |
setIncludes(String includes)
Sets the files to include in the transformation. |
void |
setNeverOverwrite(boolean neverOverwrite)
Sets to never overwrite the destination. |
Methods inherited from class org.apache.tools.ant.taskdefs.XSLTProcess |
add, add, addConfiguredStyle, addConfiguredXMLCatalog, addSysproperty, addSyspropertyset, configureLiaison, configureLiaison, createClasspath, createFactory, createOutputProperty, createParam, createTrace, getFactory, getLiaison, getOutputProperties, getSuppressWarnings, getTraceConfiguration, getXMLCatalog, handleError, handleError, handleTransformationError, init, setBasedir, setClasspath, setClasspathRef, setExtension, setFailOnError, setFailOnNoResources, setFailOnTransformationError, setFileDirParameter, setFileNameParameter, setForce, setIn, setOut, setProcessor, setReloadStylesheet, setScanIncludedDirectories, setStyle, setSuppressWarnings, setUseImplicitFileset, setXslResource |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludesfile, setProject, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from interface org.apache.tools.ant.taskdefs.XSLTLogger |
log |
XsltPlusTask
public XsltPlusTask()
setNeverOverwrite
public void setNeverOverwrite(boolean neverOverwrite)
- Sets to never overwrite the destination.
- Parameters:
neverOverwrite
- true
if the destination should never be overwritten,
false
otherwise.
setIncludes
public void setIncludes(String includes)
- Sets the files to include in the transformation.
- Parameters:
includes
- The files to tranform.
addMapper
public void addMapper(Mapper mapper)
- Sets the mapper.
- Parameters:
mapper
- The mapper.
setDestdir
public void setDestdir(File destDir)
- Sets the destination directory.
- Parameters:
destDir
- The destination directory.
execute
public void execute()
throws BuildException
- Called by the project to let the task do its work.
- Throws:
BuildException
- if something goes wrong with the build.
See http://www.xins.org/.