Issue Type: Bug Bug
Affects Versions: UDIG 1.3.3
Assignee: Jody Garnett
Attachments: fix_libs_source_plugin_for_pde.patch, unpack_plugins_for_sdk.patch
Components: framework
Created: 24/Sep/12 11:50 AM
Description:

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.

Fix Versions: UDIG 1.3.3
Project: uDIG
Priority: Minor Minor
Reporter: Panagiotis Skintzos
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to