|
|
Re: Install feature on demand? [message #1768426 is a reply to message #1768421] |
Tue, 18 July 2017 14:11 |
Ed Merks Messages: 33258 Registered: July 2009 |
Senior Member |
|
|
Note that such triggering of features to install are controlled by the Ecore model of that task implementation. E.g., in this case, Project.ecore's EPakcage has this annotation:<?xml version="1.0" encoding="UTF-8"?>
<ecore:EAnnotation
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
source="http://www.eclipse.org/oomph/setup/Enablement">
<details key="variableName"
value="setup.projects.p2"/>
<details key="repository"
value="${oomph.update.url}"/>
<details key="installableUnits"
value="org.eclipse.oomph.setup.projects.feature.group"/>
</ecore:EAnnotation> So when the task implementation is needed because you're really going to use that task in your setup model, what needs to be installed is automatically known. The wizard for creating an Oomph task extension model will allow you to specify this information.
Unless you're implementing your own specialized tasks, you should use a p2 task to specify what you want automatically installed.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03539 seconds