Return-Path:
to your task's <classpath>.
+
+
+ While JDK 1.4.x contains a version of Xalan-J 2, JDK 1.5
+ (and later?) have moved
+ to XSLTC. Since this task uses Xalan's redirect
+ extensions for its internal stylesheet, Ant doesn't support
+ XSLTC yet. This means that you have to install Xalan-J 2 in order
+ to use this task with JDK 1.5. If you want to follow progress on this, here
+ is the relevant bug report.NoClassDefFoundError
if forked.
+ <junitreport>
doesn't work with JDK 1.5 but
+ worked fine with JDK 1.4.
+
+ Answers
@@ -1650,6 +1656,21 @@
<pathelement path="${ant.home}/lib/xml-apis.jar:${ant.home}/lib/xercesImpl.jar"/>
<junitreport>
doesn't work with JDK 1.5 but
+ worked fine with JDK 1.4.
+
+
The task needs Xalan 2.x; -although -Xalan 1.2.2 -does work, but as Xalan1 is not supported, we do not recommend this. -
+The task needs Xalan +2.x; although Xalan +1.2.2 does work, but as Xalan1 is not supported, we do not +recommend this. While JDK 1.4.x contains a version of Xalan-J 2, JDK +1.5 and later have moved +to XSLTC. Since this task uses Xalan's redirect extensions for +its internal stylesheet, Ant doesn't support XSLTC yet. This means +that you have to install Xalan-J 2 in order to use this task with JDK +1.5.
If you do you use Xalan 1.2.2 you will need a compatible (older) version of Xerces.
as well as BSF(bsf.jar). Again, using Xalan 2 is simpler and supported.
No revision
No revision
1.11.2.4 +12 -2 ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/XalanExecutor.java
Index: XalanExecutor.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/XalanExecutor.java,v
retrieving revision 1.11.2.3
retrieving revision 1.11.2.4
diff -u -r1.11.2.3 -r1.11.2.4
--- XalanExecutor.java 9 Feb 2004 22:12:34 -0000 1.11.2.3
+++ XalanExecutor.java 2 Jun 2004 12:33:21 -0000 1.11.2.4
@@ -27,6 +27,7 @@
import java.lang.reflect.Field;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
+import org.apache.tools.ant.util.JavaEnvUtils;
/**
* Command class that encapsulate specific behavior for each
@@ -86,8 +87,17 @@
xalan1missing.printStackTrace(new PrintWriter(swr));
caller.task.log("Didn't find Xalan1.", Project.MSG_DEBUG);
caller.task.log(swr.toString(), Project.MSG_DEBUG);
- throw new BuildException("Could not find xalan2 nor xalan1 "
- + "in the classpath. Check http://xml.apache.org/xalan-j");
+ String msg = "Could not find xalan2 nor xalan1 "
+ + "in the classpath. Check http://xml.apache.org/xalan-j/";
+ if (!JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)
+ && !JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_2)
+ && !JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_3)
+ && !JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_4)) {
+ msg += "\r\nStarting with JDK 1.5, the built-in processor "
+ + "of the JDK is no longer Xalan\r\nbut XSLTC which is "
+ + "not (yet) supported by the junitreport task.";
+ }
+ throw new BuildException(msg);
}
}
String version = getXalanVersion(procVersion);
No revision
No revision
1.38.2.13 +23 -0 ant/xdocs/faq.xml
Index: faq.xml
===================================================================
RCS file: /home/cvs/ant/xdocs/faq.xml,v
retrieving revision 1.38.2.12
retrieving revision 1.38.2.13
diff -u -r1.38.2.12 -r1.38.2.13
--- faq.xml 20 Apr 2004 07:29:36 -0000 1.38.2.12
+++ faq.xml 2 Jun 2004 12:33:21 -0000 1.38.2.13
@@ -1469,6 +1469,29 @@
+
+ While JDK 1.4.x contains a version of Xalan-J 2, JDK 1.5
+ (and later?) have moved
+ to XSLTC. Since this task uses Xalan's redirect
+ extensions for its internal stylesheet, Ant doesn't support
+ XSLTC yet. This means that you have to install Xalan-J 2 in order
+ to use this task with JDK 1.5. If you want to follow progress on this, here
+ is the relevant bug report.<junitreport>
doesn't work with JDK 1.5 but
+ worked fine with JDK 1.4.
+