ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petar Tahchiev <paranoia...@gmail.com>
Subject Possible bug in Ant 1.8.0
Date Mon, 15 Mar 2010 19:26:02 GMT
Hi guys,

I was running the tests for my book with the latest version of Ant:

Apache Ant version 1.8.0 compiled on February 1 2010

and Ivy (version 2.1.0) and the tests in chapter 6 fail with the error:

BUILD FAILED
/home/petar/workspace/junitbook/ch06-stubs/build.xml:64:
java.lang.ClassCircularityError: org/junit/runner/notification/Failure
    at
org.junit.internal.runners.model.EachTestNotifier.addFailure(EachTestNotifier.java:29)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:226)
    at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
    at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:422)
    at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1339)
    at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:807)
    at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1794)
    at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:761)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

I am using Java:
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode)

and Ubuntu 9.1 66 edition. The funny thing is that it doesn't work with Ant
1.8.0RC1
but downgrading to Ant 1.7.0 and the build works just fine.

If you want to test it you can checkout the source of the book from here:

https://junitbook.svn.sourceforge.net/svnroot/junitbook/trunk/junitbook2/

and go to chapter 6 and execute ant test.

Has anyone seen this error before?


-- 
Regards, Petar!
Karlovo, Bulgaria.
- - - - - - - -
| Author @ Manning Publications.
| CEO @ Phamola
| BGJUG-Bulgarian Java User Group Leader.
| Apache Maven Developer.
| Apache Jakarta PMC member.
| Jakarta Cactus Lead Developer.
| Codehaus Plexus Developer
| Blogger: http://weblogs.java.net/blog/paranoiabla/
- - - - - - - -
Public PGP Key at:
https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611
Key Fingerprint: A369 A7EE 61BC 93A3 CDFF  55A5 1965 8550 C311 0611

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message