org.exolab.adaptx.util

Class JakartaAntAdapter

public class JakartaAntAdapter extends Object implements 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 02:38:44 -0500 (Sat, 01 Mar 2003) $

Author: Keith Visco

Constructor Summary
JakartaAntAdapter()
Creates a new adapter class for Jakarta ANT.
Method Summary
voidaddParam(String name, String expression)
Add a parameter to be set during the XSL transformation.
voidsetStylesheet(File stylesheet)
Sets the stylesheet to use for the transformation.
voidtransform(File infile, File outfile)
Perform the transformation of a file into another.

Constructor Detail

JakartaAntAdapter

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

Method Detail

addParam

public void addParam(String name, String expression)
Add a parameter to be set during the XSL transformation.

Parameters: name the parameter name. expression the parameter value as an expression string.

Throws: Exception thrown if any problems happens.

setStylesheet

public void setStylesheet(File stylesheet)
Sets the stylesheet to use for the transformation.

Parameters: stylesheet the stylesheet to be used for transformation.

transform

public void transform(File infile, File outfile)
Perform the transformation of a file into another.

Parameters: infile the xml input file. outfile the output file resulting from the transformation

Throws: Exception thrown if any problems happens.

See Also: