Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHeadless build doesn't enforce OSGi constraints
https://www.eclipse.org/forums/index.php/mv/msg/17299/55419/#msg_55419
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]]>Will Horn2009-04-15T23:14:25-00:00Re: Headless build doesn't enforce OSGi constraints
https://www.eclipse.org/forums/index.php/mv/msg/17299/56356/#msg_56356
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]]>Andrew Niefer2009-04-16T20:22:05-00:00Re: Headless build doesn't enforce OSGi constraints
https://www.eclipse.org/forums/index.php/mv/msg/17299/595625/#msg_595625
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]]>Andrew Niefer2009-04-16T20:22:05-00:00