[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] using third party jars in equinox
- From: Harald Niesche <harald@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 01 Mar 2006 17:35:28 +0100
- Delivered-to: email@example.com
- User-agent: Thunderbird 1.5 (Windows/20051201)
Abhishek Verma wrote:
> What is the best approach to use third party jars in more then one plugins?
> Current aapproach:
> Create a plug-in with the third party jars and make other plug-ins
> dependent on this plug-in.
You should actually import the packages, not declare a dependency on the
plugin. That way, your plugins are independent of the actual packaging
of those other jars (if one day the other packages are supplied as
bundles, you can just drop those bundles into the framework and your
plugins continue to work).
> But I could not find a way to export the
> 'jars' from the plug-in. Currently it works by exporting all the
> packages in Manifest and specifying the jar as exportable in Java Build
> Is there a better way to export 'Jars'?
Exporting all the packages is exactly the right way, because it enables
you to re-package the bundles.