Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Hiding Source Features in Custom Target Platform

Hello everybody,

with your help, I finally got my custom target platform build to work
(see my recent posting on this mailinglist). But there's still one
issue I would like to solve: Is there a way to hide source features
from the user when building the final update site project with tycho?
When configuring a target platform in Eclipse using default p2
locations, such as http://downloads.eclipse.org/releases/indigo, only
one feature is shown to the user for each element (e.g. feature for
org.eclipse.rcp, but not for org.eclipse.rcp.source). If the user
selects the option "Include source if available", the resolution
process downloads both features and their listed plugins.

In contrary, two features are shown to the user in my case (see
attached sample projects), and the user explicitely needs to select
both of them to gain source code access. The option "Include source if
available" seems to be ignored in my case.

Proceed as follows to reproduce the issue with the attached sample projects:

1) Extract attached zip file into a new and clean Eclipse Indigo workspace.
2) Subsequently run Maven Install on the projects; Maven Package
suffices on com.example.repository.
3) Now grab the result from com.example.repository/target/repository
and place it to a webspace of your choice.
4) Create a new Eclipse Indigo Workspace.
5) Configure Target Platform to include local Eclipse Indigo
installation directory, plus the repository generated above. Do not
select the source feature in the first step, and do not activate the
option "Include source if available".
6) Create a new RCP project (e.g. Hello RCP demo) and import the
package org.slf4f in its MANIFEST.MF.
7) Inspect that you have access to the com.example.logging jar, but
not its sources.
8) To gain access to the sources, the only way is to select the source
feature in the target platform setup. Activating the option "Include
source if available" does not help.

Do you guys have any hints? I appreciate any help you can give me.

Regards
Timo

Attachment: custom_targetplatform_build_v3.zip
Description: Zip archive


Back to the top