akhikhl / wuff

Gradle plugin for automating assembly of OSGi/Eclipse bundles and applications
MIT License
152 stars 51 forks source link

Compile Error with a bundle Fragment #73

Open golauty opened 9 years ago

golauty commented 9 years ago

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 commented 9 years ago

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?