Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » how to export jars from plugin in 3.0 bundle
how to export jars from plugin in 3.0 bundle [message #283915] Wed, 13 April 2005 19:53 Go to next message
Miguel Griffa is currently offline Miguel GriffaFriend
Messages: 118
Registered: July 2009
Senior Member
Hi all
I have a plugin that includes some jars in lib/ I'd like all these jars
to be exported so I can use them from another plugin, is there a simple
way of doing this?
Re: how to export jars from plugin in 3.0 bundle [message #283916 is a reply to message #283915] Wed, 13 April 2005 19:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

If you need to use them from another plugin you need to put them as
libraries in your plugin.xml and export them. Just like any other
runtime jar in a plugin.

Miguel Griffa wrote:
> Hi all
> I have a plugin that includes some jars in lib/ I'd like all these jars
> to be exported so I can use them from another plugin, is there a simple
> way of doing this?

--
Thanks,
Rich Kulp
Re: how to export jars from plugin in 3.0 bundle [message #283919 is a reply to message #283916] Wed, 13 April 2005 20:44 Go to previous messageGo to next message
Miguel Griffa is currently offline Miguel GriffaFriend
Messages: 118
Registered: July 2009
Senior Member
my plugin.xml does not contain any (old style?) <library tag
these are defined in manifes.mf

like this:
Bundle-ClassPath:
lib/jaxen-core-1.0-fcs.jar,lib/saxpath-1.0-fcs.jar,lib/xerce sImpl-2.6.2.jar,lib/xmlParserAPIs-2.6.2.jar,pmd-eclipse.jar, lib/pmd-3.0.jar

I have not found a way of re-exporting this


Rich Kulp wrote:
> If you need to use them from another plugin you need to put them as
> libraries in your plugin.xml and export them. Just like any other
> runtime jar in a plugin.
>
> Miguel Griffa wrote:
>
>> Hi all
>> I have a plugin that includes some jars in lib/ I'd like all these
>> jars to be exported so I can use them from another plugin, is there a
>> simple way of doing this?
>
>
Re: how to export jars from plugin in 3.0 bundle [message #283924 is a reply to message #283919] Wed, 13 April 2005 23:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

The plugin manifest should be able to help with that. Try it out.


--
Thanks,
Rich Kulp
Re: how to export jars from plugin in 3.0 bundle [message #283962 is a reply to message #283924] Thu, 14 April 2005 15:32 Go to previous messageGo to next message
Miguel Griffa is currently offline Miguel GriffaFriend
Messages: 118
Registered: July 2009
Senior Member
Rich Kulp wrote:
> The plugin manifest should be able to help with that. Try it out.
>
>

I've tried (without success) the following

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin export="true">

<runtime>
[ ...more libs like this ... ]

<library name="pmd-eclipse.jar">
<export name="*"/>
</library>
<library name="lib/pmd-3.0.jar">
<export name="*"/>
</library>
</runtime>


any ideas?
Re: how to export jars from plugin in 3.0 bundle [message #283966 is a reply to message #283962] Thu, 14 April 2005 16:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

You said you were using the manifest approach, in that case you wouldn't
add libraries to the plugin.xml file itself. I was thinking you would
you the "Runtime" page of the manifest editor to define your libraries.
Then the editor should know you were in the new manifest mode and update
the manifest for you. I've never tried it, but they said it works.


--
Thanks,
Rich Kulp
SOLVED Re: how to export jars from plugin in 3.0 bundle [message #283970 is a reply to message #283966] Thu, 14 April 2005 17:41 Go to previous message
Miguel Griffa is currently offline Miguel GriffaFriend
Messages: 118
Registered: July 2009
Senior Member
I installed eclipse 3.1M6, and the manifest editor confirmed some things:
<runtime>
<library>...

is ignored if MANIFEST.MF is present

I had to specify all packages to export, in the editor, The editor is
wise enough to present only packages in plugin and not already exported.

I came up with a pretty long list of exported packages, but it worked
well then

Thanks for the help

Rich Kulp wrote:
> You said you were using the manifest approach, in that case you wouldn't
> add libraries to the plugin.xml file itself. I was thinking you would
> you the "Runtime" page of the manifest editor to define your libraries.
> Then the editor should know you were in the new manifest mode and update
> the manifest for you. I've never tried it, but they said it works.
>
>
Previous Topic:Args passed to IPlatformRunnable
Next Topic:any help with a message board and chat functionality in eclipse plugin
Goto Forum:
  


Current Time: Sat Dec 21 14:35:50 GMT 2024

Powered by FUDForum. Page generated in 0.03678 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top