file makes a difference. As long as you have the native fragments for
enabled, the feature should include all of them. The troubles I
building the features.
At the moment I only see the possibility to switch back.
Perhaps I miss something out.
Post by Justin GeorgesonThe problem I ran into with specifying all the platform environments
is that if I was on linux building a reactor which included the
native fragment bundles it would fail on the windows fragments
because the platform filter for those fragments (windows) didn't
apply to the OS (linux).
-----Original Message-----
Sent: Wednesday, March 20, 2013 10:10 AM
To: Tycho user list
Subject: Re: [tycho-user] How to build plugin-based products with
platform-specific fragments?
Hello Justin,
thanks for the explaination.
In my case the SWT fragments are missing.
The plugin based way was easy with including all plugins and
relation to the os/ws.
But it isn't the recommened way. So I switched to the feature based
product, because it should handle all on it own with a valid
environment configuration in the pom.xml.
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<resolver>p2</resolver>
<pomDependencies>consider</pomDependencies>
<environments>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86</arch>
</environment>
...
</configuration>
</plugin>
I thought it is enough to define something like that and tycho will
use the fragments, whcih are needed by the environment.
But it seems not to work.
In general I got some problems with the feature based product.
java.lang.RuntimeException: Application "org.eclipse.ui.ide.workbench"
could not be found in the registry
I had to include as dependency org.eclipse.ui.ide.application. I
don't know why, but it works after it.
Perhaps I have something wrong in the tycho configuration or similar.
Cheers,
Chris
Post by Justin GeorgesonWe have feature-based products with lots of native code to compile
into fragments. Our aggregator has profiles like linux-repo and
win-repo and the reactor includes all the plugins (host plugins,
fragment plugins, test plugins) and a special platform-specific
projects for a feature and a repository. These platform builds only
enable the tycho-platform-configuration environment that they're
building. So at the end of this reactor each platform build machine
has a P2 repo of the native fragments. We copy the windows fragment
p2 repo to the linux machine, then build a profile that includes
those platform-fragment p2 repos and the reactor has our shippable
features and products. And this feature/product reactor has all
tycho-platform-configuration environments enabled.
It means we're duplicating the compilation of the Java code on each
platform but I couldn't see an easy way to avoid that.
-----Original Message-----
Sent: Wednesday, March 20, 2013 8:15 AM
Subject: Re: [tycho-user] How to build plugin-based products with
platform-specific fragments?
Hello,
now I have switched to a feature based product, but now I am facing the same problem.
The platform-specific fragments are missing.
I had setted up the environments like described in my previous mail.
What is going wrong?
Cheers,
Chris
_______________________________________________
tycho-user mailing list
https://dev.eclipse.org/mailman/listinfo/tycho-user
---------------------------------------------------------------------
- This e-mail, including any attached files, may contain confidential
and privileged information for the sole use of the intended
recipient. Any review, use, distribution, or disclosure by others
is strictly prohibited. If you are not the intended recipient (or
authorized to receive information for the intended recipient),
please contact the sender by reply e-mail and delete all copies of
this message.
_______________________________________________
tycho-user mailing list
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
https://dev.eclipse.org/mailman/listinfo/tycho-user