PDE finding source for BND-wrapped jars [message #323916] |
Sat, 12 January 2008 13:11  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.05049 seconds