Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336979

Summary: Add Eclipse-SourceReferences to EGit/JGit bundles
Product: [Technology] EGit Reporter: Alex Blewitt <alex.blewitt>
Component: RelengAssignee: Matthias Sohn <matthias.sohn>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r, mknauer, mober.at+eclipse, robin, stefan.lay
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Alex Blewitt CLA 2011-02-11 12:45:08 EST
PDE has support for parsing Eclipse-SourceReferences to point to an arbitrary Maven SCM URL.

http://wiki.eclipse.org/PDE/UI/SourceReferences

e.g. 

Eclipse-SourceReferences: scm:cvs:pserver:dev.eclipse.org:/cvsroot/eclipse:org.eclipse.debug.core;tag=v20100427

We should add something like this to the EGit/JGit bundles:

Eclipse-SourceReferences: scm:git:http://egit.eclipse.org/egit.git
Comment 1 Martin Oberhuber CLA 2013-03-17 20:10:02 EDT
Doing this seems to be really simple now with CBI / Tycho, look at what we did for TM: https://git.eclipse.org/r/#/c/11229/
Comment 2 Martin Oberhuber CLA 2013-03-17 20:23:25 EDT
Generating them through CBI/Tycho is supported since Tycho 0.16.0:
The detailed docs are here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=380872

http://wiki.eclipse.org/Tycho/FAQ#How_to_generate_Eclipse-SourceReferences_MANIFEST_header.3F
Comment 3 Matthias Sohn CLA 2015-09-23 20:48:20 EDT
Eclipse-SourceReferences are generated for EGit since a long time.
There is no simple way to generate them for the JGit bundles since we can't use Tycho to build them since we need both Maven and OSGi artifacts which isn't supported by Tycho.
Comment 4 Alex Blewitt CLA 2015-09-23 20:57:39 EDT
You could hard-code the Eclipse-SourceReference in the JGit Manifest.MF without the tag, though.