Browse Source

Undo change made by accident ...

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275193 13f79535-47bb-0310-9956-ffa450edef68
master
Jan Materne 22 years ago
parent
commit
6f5e89efb6
1 changed files with 0 additions and 9 deletions
  1. +0
    -9
      src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java

+ 0
- 9
src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java View File

@@ -226,9 +226,6 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
((XSLTLoggerAware) liaison).setLogger(this); ((XSLTLoggerAware) liaison).setLogger(this);
} }


Class cl = liaison.getClass();
String s = cl.toString();

log("Using " + liaison.getClass().toString(), Project.MSG_VERBOSE); log("Using " + liaison.getClass().toString(), Project.MSG_VERBOSE);


File stylesheet = getProject().resolveFile(xslFile); File stylesheet = getProject().resolveFile(xslFile);
@@ -569,27 +566,22 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
protected XSLTLiaison getLiaison() { protected XSLTLiaison getLiaison() {
// if processor wasn't specified, see if TraX is available. If not, // if processor wasn't specified, see if TraX is available. If not,
// default it to xslp or xalan, depending on which is in the classpath // default it to xslp or xalan, depending on which is in the classpath
Class cl = null;
if (liaison == null) { if (liaison == null) {
if (processor != null) { if (processor != null) {
try { try {
resolveProcessor(processor); resolveProcessor(processor);
cl = liaison.getClass();
} catch (Exception e) { } catch (Exception e) {
throw new BuildException(e); throw new BuildException(e);
} }
} else { } else {
try { try {
resolveProcessor("trax"); resolveProcessor("trax");
cl = liaison.getClass();
} catch (Throwable e1) { } catch (Throwable e1) {
try { try {
resolveProcessor("xalan"); resolveProcessor("xalan");
cl = liaison.getClass();
} catch (Throwable e2) { } catch (Throwable e2) {
try { try {
resolveProcessor("xslp"); resolveProcessor("xslp");
cl = liaison.getClass();
} catch (Throwable e3) { } catch (Throwable e3) {
e3.printStackTrace(); e3.printStackTrace();
e2.printStackTrace(); e2.printStackTrace();
@@ -599,7 +591,6 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {
} }
} }
} }
cl = liaison.getClass();
return liaison; return liaison;
} }




Loading…
Cancel
Save