Hi,

if you've followed the bugzilla mails or commits of today, you have
already seen that <junitreport> doesn't work nicely with JDK 1.5.[1]
The correct route seems to be to replace the stylesheets with
something that does not require Xalan's redirect extensions, but this
is way beyond my XSLT knowledge.

Another issue I faced but that's probably irrelevant to anybody else,
bootstrap(.sh|.bat) don't set -target 1.2 in their javac invocation,
so the classes compiled by the bootstrap scripts won't run with older
VMs.

Unfortunately there is more, one of the tests fails with JDK 1.5:

    [junit] Testcase: 
testClosure(org.apache.tools.ant.taskdefs.optional.depend.DependTest):    FAILED
    [junit] Depend did not leave correct number of files expected:<2> but 
was:<1>
    [junit] junit.framework.AssertionFailedError: Depend did not leave correct 
number of files expected:<2> but was:<1>
    [junit]     at junit.framework.Assert.fail(Assert.java:47)
    [junit]     at junit.framework.Assert.failNotEquals(Assert.java:282)
    [junit]     at junit.framework.Assert.assertEquals(Assert.java:64)
    [junit]     at junit.framework.Assert.assertEquals(Assert.java:201)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.depend.DependTest.testClosure(DependTest.java:76)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [junit]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [junit]     at java.lang.reflect.Method.invoke(Method.java:582)
    [junit]     at junit.framework.TestCase.runTest(TestCase.java:154)
    [junit]     at junit.framework.TestCase.runBare(TestCase.java:127)
    [junit]     at junit.framework.TestResult$1.protect(TestResult.java:106)
    [junit]     at junit.framework.TestResult.runProtected(TestResult.java:124)
    [junit]     at junit.framework.TestResult.run(TestResult.java:109)
    [junit]     at junit.framework.TestCase.run(TestCase.java:118)
    [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:208)
    [junit]     at junit.framework.TestSuite.run(TestSuite.java:203)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1074)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:689)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1426)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:646)
    [junit]     at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [junit]     at org.apache.tools.ant.Task.perform(Task.java:363)
    [junit]     at org.apache.tools.ant.Target.execute(Target.java:321)
    [junit]     at org.apache.tools.ant.Target.performTasks(Target.java:348)
    [junit]     at org.apache.tools.ant.Project.executeTarget(Project.java:1212)
    [junit]     at 
org.apache.tools.ant.Project.executeTargets(Project.java:1060)
    [junit]     at org.apache.tools.ant.Main.runBuild(Main.java:666)
    [junit]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
    [junit]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
    [junit]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)


Stefan

Footnotes: 
[1]  http://ant.apache.org/faq.html#xalan-jdk1.5


-- 
http://stefanbodewig.blogger.de/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to