Headless build doesn't enforce OSGi constraints [message #55419] |
Wed, 15 April 2009 19:14  |
Eclipse User |
|
|
|
I have multiple plugins where some depend on the export packages of
others. If I remove the package from a provider plugin's MANIFEST.MF
Export-Packages, the IDE gives me compile errors, but headless build
still runs successfully. Of course, if I try to run the build product,
I get ClassNotFoundException.
I am wondering if:
A) Enforcing OSGi constraints is not supported in headless build, or
B) My build is set up improperly
If it's B, any ideas what is wrong?
Thanks,
Will
|
|
|
Re: Headless build doesn't enforce OSGi constraints [message #56356 is a reply to message #55419] |
Thu, 16 April 2009 16:22  |
Eclipse User |
|
|
|
The Headless build does enforce the OSGi constraints.
You would expect the build to fail early on with a message saying your
bundle did not resolve.
Are there perhaps multiple versions of the provider available in the
headless build? Or perhaps other bundles providing the package that are
around in the build but not included in your feature so that they don't
end up in the final archives?
Will Horn wrote:
> I have multiple plugins where some depend on the export packages of
> others. If I remove the package from a provider plugin's MANIFEST.MF
> Export-Packages, the IDE gives me compile errors, but headless build
> still runs successfully. Of course, if I try to run the build product,
> I get ClassNotFoundException.
>
> I am wondering if:
>
> A) Enforcing OSGi constraints is not supported in headless build, or
> B) My build is set up improperly
>
> If it's B, any ideas what is wrong?
>
> Thanks,
> Will
|
|
|
Re: Headless build doesn't enforce OSGi constraints [message #595625 is a reply to message #55419] |
Thu, 16 April 2009 16:22  |
Eclipse User |
|
|
|
The Headless build does enforce the OSGi constraints.
You would expect the build to fail early on with a message saying your
bundle did not resolve.
Are there perhaps multiple versions of the provider available in the
headless build? Or perhaps other bundles providing the package that are
around in the build but not included in your feature so that they don't
end up in the final archives?
Will Horn wrote:
> I have multiple plugins where some depend on the export packages of
> others. If I remove the package from a provider plugin's MANIFEST.MF
> Export-Packages, the IDE gives me compile errors, but headless build
> still runs successfully. Of course, if I try to run the build product,
> I get ClassNotFoundException.
>
> I am wondering if:
>
> A) Enforcing OSGi constraints is not supported in headless build, or
> B) My build is set up improperly
>
> If it's B, any ideas what is wrong?
>
> Thanks,
> Will
|
|
|
Powered by
FUDForum. Page generated in 0.03838 seconds