Class JakartaAntAdapter

java.lang.Object
org.exolab.adaptx.util.JakartaAntAdapter
All Implemented Interfaces:
org.apache.tools.ant.taskdefs.XSLTLiaison

public class JakartaAntAdapter extends Object implements org.apache.tools.ant.taskdefs.XSLTLiaison
A 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
  • Field Summary

    Fields inherited from interface org.apache.tools.ant.taskdefs.XSLTLiaison

    FILE_PROTOCOL_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new adapter class for Jakarta ANT.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addParam(String name, String expression)
    Add a parameter to be set during the XSL transformation.
    void
    setStylesheet(File stylesheet)
    Sets the stylesheet to use for the transformation.
    void
    transform(File infile, File outfile)
    Perform the transformation of a file into another.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JakartaAntAdapter

      public JakartaAntAdapter()
      Creates a new adapter class for Jakarta ANT.
  • Method Details

    • setStylesheet

      public void setStylesheet(File stylesheet) throws Exception
      Sets the stylesheet to use for the transformation.
      Specified by:
      setStylesheet in interface org.apache.tools.ant.taskdefs.XSLTLiaison
      Parameters:
      stylesheet - the stylesheet to be used for transformation.
      Throws:
      Exception
    • addParam

      public void addParam(String name, String expression) throws Exception
      Add a parameter to be set during the XSL transformation.
      Specified by:
      addParam in interface org.apache.tools.ant.taskdefs.XSLTLiaison
      Parameters:
      name - the parameter name.
      expression - the parameter value as an expression string.
      Throws:
      Exception - thrown if any problems happens.
    • transform

      public void transform(File infile, File outfile) throws Exception
      Perform the transformation of a file into another.
      Specified by:
      transform in interface org.apache.tools.ant.taskdefs.XSLTLiaison
      Parameters:
      infile - the xml input file.
      outfile - the output file resulting from the transformation
      Throws:
      Exception - thrown if any problems happens.
      See Also: