[releng] Junit bundles with Gentoo [message #327494] |
Tue, 22 April 2008 08:10  |
Eclipse User |
|
|
|
Hello, as the current maintainer of Eclipse Europa on gentoo, I am faced
with a Junit bug. The Junit 4 version bundled with Eclipse is normally
4.3, but on Gentoo we use 4.4. 4.4 has a dependency on some of hamcrest
classes.
Thus currently when trying to load a Junit 4 test on Gentoo Eclipse, a CNF
exception occurs regarding the hamcrest classes.
So I tried to fiddle with the manifest in the Junit 4 bundle to include a
dependency to our local system hamcrest jar. However so far I have not
been successful.
My questions are:
1) Am I on the right path at all? Eg, if the user adds a Junit library via
the normal Eclipse mechanism (Configure Build Path -> Add Library ->
JUnit), will the OSGi framework resolves the dependencies or not? If the
only effect of adding junit this way is to add an entry to the project
classpath, I guess not.
2) Normally the junit bundles are exploded, eg in a folder. I tried to jar
the folder, removed the Bundle-ClassPath OSGi header attribute. But then
something strange happens: everytime I load Eclipse, it creates in
/home/elvanor/.eclipse/org.eclipse.platform_3.3.0_1169174242 /configuration/org.eclipse.osgi/bundles/34/1/.cp
the contents of this jar. When I add the Junit library via the mechanism I
described, it shows a junit.jar file which is not present (as I removed
it, but also removed it from the Bundle-ClassPath). Then nothing works at
all, eg I cannot even start a Junit test.
So what's happening exactly, what is Eclipse doing?
Thanks for helping,
Jean-Noel
|
|
|
|
Powered by
FUDForum. Page generated in 0.33149 seconds