Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsCustom setup task dependencies problem
https://www.eclipse.org/forums/index.php/mv/msg/1097231/1801668/#msg_1801668
In our project, we have a custom Oomph Setup Task that performs some project-specific actions during the product installation. The problem is that both setup task and product use Google Guice plugins as dependencies, but with different versions (4.1.0 in task and 3.0.0 in product), and it totally breaks product.
So, are there any ways to not to install plugins that use setup task into the product? Our task has only BOOTSTRAP trigger, so it won't be used after product installations. Or maybe there are other ways to solve our problem without making any changes in product?
Thank you!]]>Tim Sibirsky2019-01-24T13:20:44-00:00Re: Custom setup task dependencies problem
https://www.eclipse.org/forums/index.php/mv/msg/1097231/1801677/#msg_1801677
When you perform the p2 task that creates the installation, are you seeing requirements listed that you're not expecting, i.e., that you have not listed in the p2 task of your product/version?
I assume that technically we should only gather requirements only from tasks that can or must run on startup or manual trigger and perhaps we've not guarded that well/properly because we've never run into a case that like. If it's doing more than that, it would be good to fix that (though I'm not thrilled at the idea of have to create a test case for it)...
]]>Ed Merks2019-01-24T16:24:29-00:00Re: Custom setup task dependencies problem
https://www.eclipse.org/forums/index.php/mv/msg/1097231/1801887/#msg_1801887
Yes, you have understood right. There are tasks that need to be installed in the installer to perform some specific logic, but they not needed in the installed product.
It seems that maybe installer really should not gather requirements from bootstrap-only tasks, but this question is opened for discussion, at least because I don't know if this approach will break something. Maybe it is a good idea to make installation of bootstrap-only tasks' dependencies as an optional action.
We have some ideas on how to overcome our problem, I will write if we find solution. But those ideas looks more like a bypass, not like real solution.
UPD: At Confirmation page, in P2 task I see all features from product setup file + features from out task.]]>Tim Sibirsky2019-01-29T08:32:52-00:00Re: Custom setup task dependencies problem
https://www.eclipse.org/forums/index.php/mv/msg/1097231/1801889/#msg_1801889
Ed Merks2019-01-29T09:11:42-00:00Re: Custom setup task dependencies problem
https://www.eclipse.org/forums/index.php/mv/msg/1097231/1801897/#msg_1801897
https://bugs.eclipse.org/bugs/show_bug.cgi?id=543931]]>Tim Sibirsky2019-01-29T10:59:30-00:00