Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Relation of multiple Target Platform Files

Multiple target files are resolved independently, and the target platform is the union of the units from all target files.


I’m not aware of a setup that allows you to detect incompatibilities if you only build the RXP_child_project. You setup can work nevertheless because Tycho resolves the dependencies of the RCP and the RAP project separately and against their respective target platform. If RXP used something only available in RAP, the RCP build would fail because RCP’s transitive dependencies (which include RXP and its dependencies) cannot be resolved against the RCP target platform.


So, as long as you build both the RCP and the RAP module with their respective target file, it doesn’t matter which target file you use for the target platform of RXP.


Hope this is clearer now ;-)




From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Sebastian Hegewald
Sent: Freitag, 16. August 2013 13:46
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] Relation of multiple Target Platform Files




we are trying to create an RCP/RAP single source project.

The structure looks like:



    - RXP_child_project

    - RCP_child_project

    - RAP_child_project


The RXP_child_project contains only source which is available in both areas (RCP and RAP). The RCP_child_project only contains RCP specific source and the RAP_child_project takes the RAP specific part.


We have created two Eclipse target files, one with the RCP specific bundles and one with the RAP specific bundles.

In the RCP_child_projct we configure the RCP target in the tycho-platform-configuration an in the RAP we set the RAP target.


In the RXP_child_project we define both target files as artifact in the tycho-platform-configuration, to track changes that are only work in RCP or RAP and not in both.


Example: If i use the FileDialog out of the Eclipse SWT bundle inside the RXP project the build should fail, because the FileDialog is RCP specific.


Our configuration seems to work, but we are fail understand the relation of the two target files inside the RXP_child_project.

Will they be merged or will there be only these bundles in the platform who are in both files?






Back to the top