Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-releng-dev] Junit bundles problems on Gentoo Linux

Hi,

I am the current maintainer of Eclipse (Europa) on Gentoo Linux. I do need to establish a working relationship with upstream, as some of the bugs I am faced are quite complex and I feel I won't be able to solve them without some help or documentation about Eclipse inner workings.

So I am writing to this list in the hope of establishing contact. If this is not the appropriate place, please redirect me to the correct one. I already posted to the linux-distro Eclipse ML but did not get much help yet (as people there are not upstream).

Here is a copy of a post I made to the forums, but did not receive any answer:

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

Back to the top