Bug 40697 - Junit4 does not work with fork="no" when junit.jar is in $ANT_HOME/lib
Summary: Junit4 does not work with fork="no" when junit.jar is in $ANT_HOME/lib
Status: RESOLVED FIXED
Alias: None
Product: Ant
Classification: Unclassified
Component: Optional Tasks (show other bugs)
Version: nightly
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
: 40708 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-06 07:56 UTC by Peter Reilly
Modified: 2008-02-22 12:18 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Reilly 2006-10-06 07:56:55 UTC
This is a followup to 
http://issues.apache.org/bugzilla/show_bug.cgi?id=40682
When junit4.jar is in $ANT_HOME/lib or ~/.ant/lib
one gets:
    [junit] No runnable methods
    [junit] java.lang.Exception: No runnable methods
Comment 1 Peter Reilly 2006-10-07 14:38:01 UTC
Tracked down the reason for this.
In JUnit4, annotations are placed in org.junit... (not in junit...)
so org.junit needs to be made a "system" package for
the configuration of the antclassloader, which junit uses with the
bug generating option parentsfirst=false
Comment 2 Peter Reilly 2006-10-09 02:16:24 UTC
*** Bug 40708 has been marked as a duplicate of this bug. ***