Browse Source

Make compile

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276668 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 21 years ago
parent
commit
0d506f5edf
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/junit/Xalan1Executor.java

+ 10
- 2
src/main/org/apache/tools/ant/taskdefs/optional/junit/Xalan1Executor.java View File

@@ -21,6 +21,8 @@ import org.apache.xalan.xslt.XSLTInputSource;
import org.apache.xalan.xslt.XSLTProcessor;
import org.apache.xalan.xslt.XSLTProcessorFactory;
import org.apache.xalan.xslt.XSLTResultTarget;
import org.apache.tools.ant.BuildException;
import org.xml.sax.SAXException;

/**
* Xalan 1 executor. It will need a lot of things in the classpath:
@@ -33,8 +35,14 @@ public class Xalan1Executor extends XalanExecutor {

private static final String xsltP = "org.apache.xalan.xslt.XSLTProcessor";

private XSLTProcessor processor = XSLTProcessorFactory.getProcessor();

XSLTProcessor processor = null;
public Xalan1Executor() {
try {
processor = XSLTProcessorFactory.getProcessor();
} catch (SAXException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
}
}
protected String getImplementation() {
return processor.getClass().getName();
}


Loading…
Cancel
Save