org.jcoderz.commons.taskdefs
Class XsltBatchProcessor

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.jcoderz.commons.taskdefs.XsltBatchProcessor
All Implemented Interfaces:
Cloneable

public class XsltBatchProcessor
extends org.apache.tools.ant.Task

Ant task that performs XSL transformation for a set of input files.

Author:
Michael Griffel

Field Summary
 
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
XsltBatchProcessor()
           
 
Method Summary
 void addFiles(org.apache.tools.ant.types.FileSet fs)
          XML files that are used as input documents for the transformation.
 void execute()
          
 void resolveExternalEntities(boolean b)
          If set to false, external entities will not be resolved.
 void setFailonerror(boolean b)
          Set whether we should fail on an error.
 void setXsl(String f)
          Set the XSL Stylesheet to use.
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, 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, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XsltBatchProcessor

public XsltBatchProcessor()
Method Detail

setFailonerror

public void setFailonerror(boolean b)
Set whether we should fail on an error.

Parameters:
b - Whether we should fail on an error.

setXsl

public void setXsl(String f)
Set the XSL Stylesheet to use.

Parameters:
f - The name of the XSL Stylesheet file.
See Also:
XsltBasedTask.getDefaultStyleSheet()

addFiles

public void addFiles(org.apache.tools.ant.types.FileSet fs)
XML files that are used as input documents for the transformation.

Parameters:
fs - fileset of XML files.

execute

public void execute()
             throws org.apache.tools.ant.BuildException

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

resolveExternalEntities

public void resolveExternalEntities(boolean b)
If set to false, external entities will not be resolved.

Parameters:
b - new value.


Copyright 2007 The jCoderZ Project.