Skip to main content



      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 13: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 14:02 Go to previous message
Eclipse UserFriend
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: Wed Apr 30 13:20:12 EDT 2025

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

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

Back to the top