Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] How to handle sources ?

>Should I create a separate source feature which includes the sources
>instead of the binary bundles or is there a better way to do it ?

yes, building source features is currently the way to ship source bundles, see [1].
Ideas for a more convenient solution are discussed in [2].

>The second question is how I should handle source jar's from standard
>maven repositories ?

If you want PDE to automatically attach sources, you will have to create a source bundle 
with OSGi MANIFEST and Eclipse-SourceBundle header [3].

Regards
Jan

[1] http://wiki.eclipse.org/Tycho/Reference_Card#Source_Bundles 
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=345234 
[3] http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.pde.doc.user/tasks/pde_individual_source.htm 

-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Erland Isaksson
Sent: Dienstag, 13. September 2011 07:16
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] How to handle sources ?

Hi

Is there a good practice how you should handle sources of a plugin and
its dependencies ?

I want to be able to:
- Build an eclipse-application that only contains the binaries which
will be distributed
- Be able to debug the application with sources from within Eclipse

Should I create a separate source feature which includes the sources
instead of the binary bundles or is there a better way to do it ?


The second question is how I should handle source jar's from standard
maven repositories ?
For example:

There is a valid OSGi MANIFEST in the binary jar:
http://repo1.maven.org/maven2/javax/ws/rs/jsr311-api/1.0/jsr311-api-1.0.jar

But the corresponding source jar only have the default Java MANIFEST:
http://repo1.maven.org/maven2/javax/ws/rs/jsr311-api/1.0/jsr311-api-1.0-sources.jar

Do I need to create a OSGi bundle of the source jar myself to make it be
possible to use it in a feature by Tycho ? Or is there some other better
way ?

/Erland
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top