Hi Jake, Yes, the JUnit JAR is in ANT_HOME/lib. I should have pointed out that this is a build.xml that I've used successfully with past versions of Ant. I've only started having the problem when I upgraded to 1.6.1.
The CNF exception occurs when the class loader tries to find one of my TestCases. I believe I've got the <classpath> set properly, because I also use the <junitreport> task to generate XML reports. I bring up the offending report for the CNF TestCase, click on the Properties link at the bottom, and I can see the FooTestCase.class in the java.class.path. I'll post more info tonight. Thanks. % --- Jacob Kjome <[EMAIL PROTECTED]> wrote: > > Where do you have JUnit.jar? If it isn't in > ANT_HOME/lib or > user.home/.ant/lib, then that's your problem right > there. Otherwise, make > sure the nested <classpath> element contains > references to the root > directory of both your application and test classes. > If none of this > works, post one of your ClassNotFoundException's so > we can get an idea of > what is going on. > > > Jake > > At 05:16 PM 2/17/2005 -0800, you wrote: > > > >I must be a dolt. I'm not getting the workaround > or > >fix that makes the <junit> task work again in Ant > >1.6.x. > > > >It used to work magnificently, but since the new > class > >loader design was added I'm getting nothing but > >ClassNotFoundException when it tries to find my > >TestCases. (Yes, I set the classpath inside the > task, > >which should be enough.) I've played around with > >build.sysclasspath settings, without success. > > > >What is the fix/workaround? I want to be able to > run > >my JUnit test suites automatically again. Thanks > - > >MOD > > > > > > > > > >__________________________________ > >Do you Yahoo!? > >Meet the all-new My Yahoo! - Try it today! > >http://my.yahoo.com > > > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: > [EMAIL PROTECTED] > >For additional commands, e-mail: > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
