org.apache.tools.ant.taskdefs.optional.junit

Class Xalan1Executor


public class Xalan1Executor
extends org.apache.tools.ant.taskdefs.optional.junit.XalanExecutor

Xalan 1 executor. It will need a lot of things in the classpath: xerces for the serialization, xalan and bsf for the extension.
To do:
do everything via reflection to avoid compile problems ?

Field Summary

Fields inherited from class org.apache.tools.ant.taskdefs.optional.junit.XalanExecutor

caller

Constructor Summary

Xalan1Executor()

Method Summary

protected String
getImplementation()
This methods should return the classname implementation of the underlying xslt processor
protected String
getProcVersion(String classNameImpl)
Try to discover the xslt processor version based on the className.

Methods inherited from class org.apache.tools.ant.taskdefs.optional.junit.XalanExecutor

getImplementation, getOutputStream, getProcVersion, getXSLTCVersion, getXalanVersion

Constructor Details

Xalan1Executor

public Xalan1Executor()

Method Details

getImplementation

protected String getImplementation()
This methods should return the classname implementation of the underlying xslt processor
Overrides:
getImplementation in interface org.apache.tools.ant.taskdefs.optional.junit.XalanExecutor
Returns:
the classname of the implementation, for example: org.apache.xalan.processor.TransformerFactoryImpl
See Also:
getProcVersion(String)

getProcVersion

protected String getProcVersion(String classNameImpl)
            throws BuildException
Try to discover the xslt processor version based on the className. There is nothing carved in stone and it can change anytime, so this is just for the sake of giving additional information if we can find it.
Overrides:
getProcVersion in interface org.apache.tools.ant.taskdefs.optional.junit.XalanExecutor
Parameters:
classNameImpl - the classname of the underlying xslt processor
Returns:
a string representing the implementation version.
Throws:
BuildException -

Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.