Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 85480 invoked from network); 2 Jun 2004 12:33:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Jun 2004 12:33:34 -0000 Received: (qmail 84826 invoked by uid 500); 2 Jun 2004 12:33:33 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 84663 invoked by uid 500); 2 Jun 2004 12:33:32 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 84648 invoked by uid 500); 2 Jun 2004 12:33:32 -0000 Received: (qmail 84635 invoked by uid 99); 2 Jun 2004 12:33:31 -0000 Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Wed, 02 Jun 2004 05:33:31 -0700 Received: (qmail 85325 invoked by uid 1146); 2 Jun 2004 12:33:21 -0000 Date: 2 Jun 2004 12:33:21 -0000 Message-ID: <20040602123321.85324.qmail@minotaur.apache.org> From: bodewig@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/xdocs faq.xml X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N bodewig 2004/06/02 05:33:21 Modified: docs Tag: ANT_16_BRANCH faq.html docs/manual/OptionalTasks Tag: ANT_16_BRANCH junitreport.html src/main/org/apache/tools/ant/taskdefs/optional/junit Tag: ANT_16_BRANCH XalanExecutor.java xdocs Tag: ANT_16_BRANCH faq.xml Log: merge Revision Changes Path No revision No revision 1.77.2.13 +21 -0 ant/docs/faq.html Index: faq.html =================================================================== RCS file: /home/cvs/ant/docs/faq.html,v retrieving revision 1.77.2.12 retrieving revision 1.77.2.13 diff -u -r1.77.2.12 -r1.77.2.13 --- faq.html 20 Apr 2004 07:29:35 -0000 1.77.2.12 +++ faq.html 2 Jun 2004 12:33:21 -0000 1.77.2.13 @@ -351,6 +351,12 @@ 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"/>

    to your task's <classpath>.

    +

    + + + <junitreport> doesn't work with JDK 1.5 but + worked fine with JDK 1.4. + +

    +

    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.

    No revision No revision 1.11.2.3 +11 -5 ant/docs/manual/OptionalTasks/junitreport.html Index: junitreport.html =================================================================== RCS file: /home/cvs/ant/docs/manual/OptionalTasks/junitreport.html,v retrieving revision 1.11.2.2 retrieving revision 1.11.2.3 diff -u -r1.11.2.2 -r1.11.2.3 --- junitreport.html 9 Feb 2004 22:12:11 -0000 1.11.2.2 +++ junitreport.html 2 Jun 2004 12:33:21 -0000 1.11.2.3 @@ -15,11 +15,17 @@ Library Dependencies for more information.

    Requirements

    -

    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 @@ + + + + <junitreport> doesn't work with JDK 1.5 but + worked fine with JDK 1.4. + + + +

    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.

    + + + --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org