org.xins.common.ant
Class XsltPlusTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.tools.ant.taskdefs.MatchingTask
              extended byorg.apache.tools.ant.taskdefs.XSLTProcess
                  extended byorg.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

Nested Class Summary
 
Nested classes inherited from class org.apache.tools.ant.taskdefs.XSLTProcess
XSLTProcess.Factory, XSLTProcess.OutputProperty, XSLTProcess.Param, XSLTProcess.TraceConfiguration
 
Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.XSLTProcess
PROCESSOR_TRAX
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
XsltPlusTask()
           
 
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 class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tools.ant.taskdefs.XSLTLogger
log
 

Constructor Detail

XsltPlusTask

public XsltPlusTask()
Method Detail

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/.