Discussion:
Target platform with platform specific features
(too old to reply)
Oliver Libutzki
2018-07-12 07:18:58 UTC
Permalink
Hi everyone,

I have a target platform which contains a platform specific feature (called MyFeature) (os="win32", ws="win32"). In my target-platform-configuration I configured multiple environments (like os=linux, ws=gtk) . Unfortuntely the build fails with with message:
"MyFeature.feature.group 0.0.1.201807111753 cannot be installed in this environment because its filter is not applicable."

In the end I want to use the eclipse-repository packaging type to build a self-contained p2 repository which contains all the features I need (including MyFearure) and the native launcher artifacts (inclusing linux).

How can I achieve this?

Kind regards
Oliver
Mickael Istria
2018-07-12 08:30:12 UTC
Permalink
Hi,

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=407273#c18 which should
indicate a solution
HTH
Oliver Libutzki
2018-07-12 12:04:23 UTC
Permalink
Hi Mickael,

thanks for documenting this feature. Unfortunately my problem is a little bit different.

I have a problem resolving my target platform, because one of the ius in my .target file is platform specific (Windows). Whenever at least one non-win32 environment is configured in target-platform-configuration, the build fails.

I just would like to ignore the iu, if the platform filter doesn't match. Any ideas?

Kind regards
Oliver


Von: "Mickael Istria" <***@redhat.com>
An: "tycho-user" <tycho-***@eclipse.org>
Gesendet: Donnerstag, 12. Juli 2018 10:30:12
Betreff: Re: [tycho-user] Target platform with platform specific features

Hi,

See [ https://bugs.eclipse.org/bugs/show_bug.cgi?id=407273#c18 | https://bugs.eclipse.org/bugs/show_bug.cgi?id=407273#c18 ] which should indicate a solution
HTH

_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
Oliver Libutzki
2018-07-12 13:04:51 UTC
Permalink
One supplement:

If I do not include the platform-specific feature in the .target file but as a p2-repository entry in my pom.xml, the target platform can be resolved.

Having that I can build my P2 repository with the help of Mickael's link.

So the root issue is that the target platform cannot be resolved, if it includes a platform-specific feature and at least one environment in the target-platform-configuration doesn't match that platform filter.

Kind regards
Oliver


Von: "Oliver Libutzki" <***@libutzki.de>
An: "tycho-user" <tycho-***@eclipse.org>
Gesendet: Donnerstag, 12. Juli 2018 14:04:23
Betreff: Re: [tycho-user] Target platform with platform specific features

Hi Mickael,

thanks for documenting this feature. Unfortunately my problem is a little bit different.

I have a problem resolving my target platform, because one of the ius in my .target file is platform specific (Windows). Whenever at least one non-win32 environment is configured in target-platform-configuration, the build fails.

I just would like to ignore the iu, if the platform filter doesn't match. Any ideas?

Kind regards
Oliver


Von: "Mickael Istria" <***@redhat.com>
An: "tycho-user" <tycho-***@eclipse.org>
Gesendet: Donnerstag, 12. Juli 2018 10:30:12
Betreff: Re: [tycho-user] Target platform with platform specific features

Hi,

See [ https://bugs.eclipse.org/bugs/show_bug.cgi?id=407273#c18 | https://bugs.eclipse.org/bugs/show_bug.cgi?id=407273#c18 ] which should indicate a solution
HTH

_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user

_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user

Continue reading on narkive:
Loading...