it looks like the eclipse PDE wizards decided to throw out the normal
attach-source functionality in favour packaging the source as a bundle and
deploying that.

So it looks like the only way to be able to browse your source when the
dependencies are plugins is to bundle them up as an OSGi bundle and tell
eclipse about them. then it all works magically! but beware, you need to get
the "Eclipse-SourceBundle:" attribute in the MANIFEST.MF file *exactly* right
otherwise it no workie. eclipse says "wut? wrong version? ok no source for
you!"
http://rajakannappan.blogspot.com/2010/03/automating-eclipse-source-bundle.html

I wonder if Intellij is this pig headed about attaching source to an osgi
project? they seem to usually be better user-oriented, as opposed to eclipse
which often personifies all that can be wrong with open source. (arcane
requirements, deep complexity, poor or out of date documentation, and don't
get me started on BIRT...)

On 13 April 2010 09:36, Matthew Kerle <[email protected]> wrote:

> hmmm Tycho actually looks pretty good, buuuut..
> "Tycho is a set of Maven plugins and extensions for building Eclipse
> plugins and OSGI bundles with Maven. "
>
> so it looks like a build tool? whereas my current pain is trying to get
> eclipse to link source to my existing bundles so ctrl-click just works,
> which is more of a me not grokking the eclipse mojo problem. maybe other
> people don't think it hard at all to wrap existing libraries in a bundle and
> build from source and it's just me...
>
> thanks though!
>
> On 13 April 2010 05:29, Erlend Hamnaberg <[email protected]> wrote:
>
>> Have you looked at Tycho? Should be available from Sonatype.org
>>
>> On Apr 12, 2010 10:36 AM, "Matthew Kerle" <[email protected]> wrote:
>>
>> ok, from what I've seen so far, OSGi seems pretty smart (hot-reloading of
>> classes at runtime? sexy!). But trying to bully eclipse into helping me
>> while I develop OSGi plugins (not for a eclipse, 3rd-party app using OSGi to
>> manage dependencies) is just a nightmare...
>>
>> What's currently making me swear? well the project we're 
>> on<http://www.cohga.com/index.php?option=com_content&view=article&id=9&Itemid=26>uses
>>  a *ton* of open source libraries (Acegi, geotools, etc), so naturally I
>> want to look at the source , but you can't just right-click edit source
>> bundle and set the source jar, no, it's "non-modifiable". Apparently the way
>> you're meant to add source is to re-build the 3rd party project as an
>> eclipse plugin from scratch with "export source" enabled. which is great if
>> all your dependencies are themselves plugins that have carefully had source
>> bundles built, then it just works. but if they're just normal libraries then
>> God alone (and the eclipse PDE authors) know how to do (Googling
>> <http://www.google.com/search?hl=en&ei=S9DCS4mIMNX9nAf26umXCg&sa=X&oi=spell&resnum=0&ct=result&cd=1&ved=0CA0QBSgA&q=eclipse+plugin+source+attachment+non+modifiable&spell=1>for
>> this problem gets few hits, mainly forum posts with people asking the same
>> question with no reply, and one out of date post where one of the PDE
>> authors laughs that this is the only request in 2years... )
>>
>> this makes me a sad panda because when I try to find out what a
>> FeatureSource is, versus a SimpleFeature or even a DataSource (org.geotools,
>> not javax.sql), I get nothing and have to open the source in textpad, and
>> then I swear... (and I don't like swearing)
>>
>> </rant>
>>
>> anyone have any experience with this?
>>
>> follow-up: most useful forum 
>> post<http://dev.eclipse.org/newslists/news.eclipse.tools.jdt/msg10552.html>still
>>  not useful.
>>
>> thumbs down to eclipse for making this hard on purpose :-(
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "The Java Posse" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<javaposse%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/javaposse?hl=en.
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "The Java Posse" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<javaposse%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/javaposse?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to