@@ -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;
}
}