Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » PDE finding source for BND-wrapped jars
PDE finding source for BND-wrapped jars [message #323916] Sat, 12 January 2008 18:11 Go to next message
Eclipse UserFriend
Originally posted by: jkosmoski.snotmail.com

We have lots of library code that needs to be usable by normal Java code,
Eclipse plugins, and OSGi runtimes.
We take these jars and wrap them using the BND tool
(http://www.aqute.biz/Code/Bnd) We also create a *-src.zip for each
jar/bundle that is stored alongside it in the same folder. JDT finds
the -src.zip automatically, but PDE appears to expect that all bundles have
been built using PDE itself (or they have a separate source bundle) and has
fairly strict rules about where and how to find source attachments (for
example you don't get a option to point the debugger to the source when it
can't find it - why not?)

I realize there is improved PDE support for bundles coming in 3.4, but I'm,
using the bundles to create an Eclipse plugin using 3.3 and it sure would be
great I could figure out a way for the bundle source to found during
debugging. So if anyone has any tricks to help PDE find the source for my
BND-wrapped jars I'd very much appreciate the help. Thanks, - Jon
Re: PDE finding source for BND-wrapped jars [message #323917 is a reply to message #323916] Sat, 12 January 2008 19:02 Go to previous message
Snjezana Peco is currently offline Snjezana PecoFriend
Messages: 789
Registered: July 2009
Senior Member
I think that the only way to achieve that in Eclipse 3.3 is to create a
plugin with the org.eclipse.pde.core.source extension point.
See http://wiki.eclipse.org/Source_Bundles and some source plugin from
Eclipse SDK.

Snjeza

Jon Kosmoski wrote:
> We have lots of library code that needs to be usable by normal Java code,
> Eclipse plugins, and OSGi runtimes.
> We take these jars and wrap them using the BND tool
> (http://www.aqute.biz/Code/Bnd) We also create a *-src.zip for each
> jar/bundle that is stored alongside it in the same folder. JDT finds
> the -src.zip automatically, but PDE appears to expect that all bundles have
> been built using PDE itself (or they have a separate source bundle) and has
> fairly strict rules about where and how to find source attachments (for
> example you don't get a option to point the debugger to the source when it
> can't find it - why not?)
>
> I realize there is improved PDE support for bundles coming in 3.4, but I'm,
> using the bundles to create an Eclipse plugin using 3.3 and it sure would be
> great I could figure out a way for the bundle source to found during
> debugging. So if anyone has any tricks to help PDE find the source for my
> BND-wrapped jars I'd very much appreciate the help. Thanks, - Jon
>
>
Previous Topic:Accessing JRE extensions from Eclipse Plugin
Next Topic:Re: Eclipse Group Growing - on LinkedIn.com...
Goto Forum:
  


Current Time: Sat Jul 13 19:36:44 GMT 2024

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

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

Back to the top