wuff icon indicating copy to clipboard operation
wuff copied to clipboard

Compile Error with a bundle Fragment

Open golauty opened this issue 10 years ago • 1 comments

So i just discovered this great plugin and now i am playing around with my legacy RCP APP. Somehow i managed to solve some dependency issues, but now i am stuck.

....\com.package.someapp.logging\src\com\enterprise\auditserver\logging\LogFactory.java:31: error: package org.apache.commons.logging.impl does not exist
import org.apache.commons.logging.impl.LogFactoryImpl;

It compiles all the bundles and the rcp app until this problem occurs. The bundle com.package.someapp.logging extends org.apache.commons.logging as a Fragment. So do i miss some configuration in my gradle script for fragments, because with my old PDE Build this was never a problem. Can anybody lead me into the right direction?

golauty avatar Jun 04 '15 16:06 golauty

I solved this problem by adding "org.apache.commons.logging" to "Require-Bundle" section in the manifest. Could this be a bug that the "Fragment-Host" section is not added to required bundle dependencies?

golauty avatar Jun 06 '15 07:06 golauty