Package org.exolab.adaptx.util
Class JakartaAntAdapter
- java.lang.Object
-
- org.exolab.adaptx.util.JakartaAntAdapter
-
- All Implemented Interfaces:
org.apache.tools.ant.taskdefs.XSLTLiaison
public class JakartaAntAdapter extends java.lang.Object implements org.apache.tools.ant.taskdefs.XSLTLiaisonA utility class which allows Adaptx to be used as the XSLT Processor for the Jakarta ANT build utility.- Version:
- $Revision: 3633 $ $Date: 2003-03-01 08:38:44 +0100 (Sat, 01 Mar 2003) $
- Author:
- Keith Visco
-
-
Constructor Summary
Constructors Constructor Description JakartaAntAdapter()Creates a new adapter class for Jakarta ANT.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParam(java.lang.String name, java.lang.String expression)Add a parameter to be set during the XSL transformation.voidsetStylesheet(java.io.File stylesheet)Sets the stylesheet to use for the transformation.voidtransform(java.io.File infile, java.io.File outfile)Perform the transformation of a file into another.
-
-
-
Method Detail
-
setStylesheet
public void setStylesheet(java.io.File stylesheet) throws java.lang.ExceptionSets the stylesheet to use for the transformation.- Specified by:
setStylesheetin interfaceorg.apache.tools.ant.taskdefs.XSLTLiaison- Parameters:
stylesheet- the stylesheet to be used for transformation.- Throws:
java.lang.Exception
-
addParam
public void addParam(java.lang.String name, java.lang.String expression) throws java.lang.ExceptionAdd a parameter to be set during the XSL transformation.- Specified by:
addParamin interfaceorg.apache.tools.ant.taskdefs.XSLTLiaison- Parameters:
name- the parameter name.expression- the parameter value as an expression string.- Throws:
java.lang.Exception- thrown if any problems happens.
-
transform
public void transform(java.io.File infile, java.io.File outfile) throws java.lang.ExceptionPerform the transformation of a file into another.- Specified by:
transformin interfaceorg.apache.tools.ant.taskdefs.XSLTLiaison- Parameters:
infile- the xml input file.outfile- the output file resulting from the transformation- Throws:
java.lang.Exception- thrown if any problems happens.- See Also:
setStylesheet(File)
-
-