[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.jdt] Re: Ant+JUnit : "taskdef A class needed ... cannot be found: junit/framework/Test"
|
- From: Christophe Porteneuve <tdd@xxxxxxxxx>
- Date: Fri, 19 May 2006 12:12:28 +0200
- Newsgroups: eclipse.tools.jdt
- Organization: EclipseCorner
- User-agent: Thunderbird 1.5.0.2 (X11/20060501)
Hello again :-)
Darin Swanson wrote:
Do you have the JUnit JAR available multiple times on the Ant runtime
classpath or even just a single time but "exposed" from a plugin to the Ant
runtime classpath?
I tried many configurations. The Ant tasks are "natively" in Ant
Runtime as the ant-junit.jar is in ant's lib directory, which is as it
should be.
As for junit.jar, it was originally "just" in my project's CLASSPATH,
which certainly was something outside the runtime context of the
build.xml script, so I tried:
* adding it to the classpath of the taskdef -> didn't help
* adding it to Ant Runtime's Global Entries -> didn't help
* putting it in Ant's lib and refreshing Ant Runtime to see it
in the Ant Home entries -> didn't help
There can be trouble with the editor validation in cases where JUnit is
loaded by an Eclipse plugin classloader and the "checking" is done within
the context of an Ant classloader.
Well yes, but going with Ant didn't help.
Again, Ant DOES work well with the internal class path def in the
build.xml file. Only the IDE detects an issue, which is wrong, because
running the script works fine, including from Eclipse.
--
Christophe Porteneuve
Chargé d'Enseignement et de Projet
Responsable spécialisation SIGL