In addition to #UDIG-1947 (SDK does not include Eclipse sources),
the sources of libs plugin are not resolved/found when you use the SDK in a target platform.
This is because the source plugin is not generated according to the specs:
http://help.eclipse.org/indigo/topic/org.eclipse.pde.doc.user/tasks/pde_individual_source.htm
Two requirements are missing for the source plugin:
1) The sources of the various libs should be unpacked in their own dirs
2) These dirs should be specified in the Eclipse-SourceBundle:roots directive
This can be achieved in the PDE build/export, by specifying a src.additionalRoots directive in the build.properties and the use of customBuildCallbacks ant script with a custom post.gather.sources target.
I attach a patch for this; it works fine, with the PDE export wizard.
The attach_source.sh is modified to update build.properties and customBuildCallbacks.xml when a source is added/removed.
However tycho does not honor the src.additionalRoots and customBuildCallbacks.
It hardcodes Eclipse-SourceBundle:roots to "." and that's it
http://dev.eclipse.org/mhonarc/lists/tycho-user/msg01991.html
Perhaps somebody with better knowledge of tycho/maven can achieve the same things with some maven plugin.
Another requirement for the sources to be usable is that the parent plugin net.refractions.udig.libs should be unpacked in the SDK.
I attach another patch for that, doing the job in sdk.sh, similar to the feature unpacking.
|