Hi Juan,
Thanks for your quick reply!
I probably should have mentioned this in my original email…
I tried adding the OS and WS to the feature that should only be available on Windows, however then
the Tycho build fails:
[INFO] ------------------------------------------------------------------------
[INFO] Building com.example.updatesite 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ com.example.updatesite ---
[INFO] Deleting D:\RMOB-1483\WorkspaceTestMultiplatform\com.example.updatesite\target
[INFO]
[INFO] --- tycho-packaging-plugin:0.20.0:build-qualifier-aggregator (default-build-qualifier-aggregator) @ com.example.updatesite ---
[INFO] The project's OSGi version is 1.0.0.201509151253
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean-1) @ com.example.updatesite ---
[INFO]
[INFO] --- tycho-p2-publisher-plugin:0.20.0:publish-products (default-publish-products) @ com.example.updatesite ---
[INFO] Cannot complete the request. Generating details.
[INFO] Cannot complete the request. Generating details.
[INFO] {osgi.ws=gtk, osgi.os=linux, osgi.arch=x86, org.eclipse.update.install.features=true}
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: com.example.updatesite raw:1.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):1.0.0-SNAPSHOT
[ERROR] Missing requirement: com.example.updatesite raw:1.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):1.0.0-SNAPSHOT requires 'com.example.feature.application.windows.feature.group [1.0.0,1.0.1)'
but it could not be found
[ERROR]
(This is an example environment I created to quickly do some tests).
This build runs on a Windows machine. The parent POM has environments “linux gtk x86”, “linux gtk x86_64”,
“win32 win32 x86” and “win32 win32 x86_64”.
Update Site ‘com.example.updatesite’
references feature ‘com.example.feature.application.windows’. But when it calculates the dependencies
for ‘osgi.ws=gtk, osgi.os=linux, osgi.arch=x86’, it misses
‘com.example.feature.application.windows’ because it is then only available for OS=win32 and WS=win32.
I also tried to limit the OS/WS in the category.xml, but that does not seem to have any effect:
<?xml
version="1.0"
encoding="UTF-8"?>
<site>
<feature
url="features/com.example.feature.application_1.0.0.qualifier.jar"
id="com.example.feature.application"
version="1.0.0.qualifier"/>
<feature
url="features/com.example.feature.application.windows_1.0.0.qualifier.jar"
id="com.example.feature.application.windows"
version="1.0.0.qualifier"
os="win32"
ws="win32"/>
</site>
Kind regards,
Marcel Romijn
From:
tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx]
On Behalf Of Juan Antonio Gonzalez Cano
Sent: Tuesday, September 15, 2015 14:34 PM
To: Tycho user list <tycho-user@xxxxxxxxxxx>
Subject: Re: [tycho-user] Don't show incompatible entries from Update Site
hi, you can specify environments in your feature.xml

Juan Antonio González Cano
Software Engineer at OpenCanarias
Tenerife - Isla Canarias - España
2015-09-15 12:10 GMT+01:00 Marcel Romijn <mromijn@xxxxxxxxxxxxxxxxxx>:
Hi,
We have a set of plugins and features that are published to an Update Site.
In the category.xml we specify two features which show up on the Update Site as installable entries.
The Update Site is built with Maven/Tycho and this all works fine.
However, one of the features provides functionality which is only available on Windows, because some of its plugins contain DLLs.
This feature is selectable, regardless of the Operating System the end-user is working on.
So on, e.g. Linux, that Windows specific feature is visible and selectable. What is worse, the feature actually installs, but (obviously) does not install the plugins with the DLLs
as those contain platform filters.
Is it possible to hide the features on the Update Site when it is shown on Operating Systems that do not support it?
Thanks!
Marcel Romijn
Software Engineer
Rocket Software
Korte Parallelweg 1 • 3311 JN Dordrecht • Netherlands
Tel:
+31 78 6322800 • Fax:
+31 78 6138134
Email:
mromijn@xxxxxxxxxxxxxxxxxx
Web:
seagull.rocketsoftware.com
Twitter
•
Facebook •
YouTube •
LinkedIn
================================
Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA 02451 ■
+1 800.966.3270 ■ +1 781.577.4321
Unsubscribe From Commercial Email –
unsubscribe@xxxxxxxxxxxxxxxxxx
Manage Your Subscription Preferences -
http://info.rocketsoftware.com/GlobalSubscriptionManagementEmailFooter_SubscriptionCenter.html
Privacy Policy -
http://www.rocketsoftware.com/company/legal/privacy-policy
================================
This communication and any attachments may contain confidential information of Rocket Software, Inc. All unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify Rocket Software immediately and destroy
all copies of this communication. Thank you.
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user