Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Oomph and Target Platforms
Oomph and Target Platforms [message #1773958] Sat, 07 October 2017 15:22 Go to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi all.

What do i need to do to be able to choose between Oxygen (Release), Oygen (M Builds) and Photon in Xtext.setup as you can find it here: https://github.com/eclipse/xtext-eclipse/blob/master/releng/org.eclipse.xtext.contributor/Xtext.setup

Thanks
Christian



Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Oomph and Target Platforms [message #1773977 is a reply to message #1773958] Sun, 08 October 2017 04:11 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
All that exists in this setup to control the target platform choice is the override of this variable:
<?xml version="1.0" encoding="UTF-8"?>
<setup:VariableTask
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    name="eclipse.target.platform"
    defaultValue="Luna"
    storageURI="scope://Workspace"
    label="Target Platform">
  <description>Choose the compatibility level of the target platform</description>
</setup:VariableTask>


This just sets the default choice but inherits the choices from the project catalog where it is defined like this:
<?xml version="1.0" encoding="UTF-8"?>
<setup:VariableTask
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    name="eclipse.target.platform"
    defaultValue="None"
    storageURI="scope://Workspace"
    label="Target Platform">
  <annotation
      source="http://www.eclipse.org/oomph/setup/GlobalVariable"/>
  <choice value="Photon"
      label="Eclipse Photon- 4.8"/>
  <choice value="Oxygen"
      label="Eclipse Oxygen - 4.7"/>
  <choice value="Neon"
      label="Eclipse Neon - 4.6"/>
  <choice value="Mars"
      label="Eclipse Mars - 4.5"/>
  <choice value="Luna"
      label="Eclipse Luna - 4.4"/>
  <choice value="Kepler"
      label="Eclipse Kepler - 4.3"/>
  <choice value="Juno"
      label="Eclipse Juno - 4.2"/>
  <choice value="Indigo"
      label="Eclipse Indigo - 3.7"/>
  <choice value="Helios"
      label="Eclipse Helios - 3.6"/>
  <choice value="Galileo"
      label="Eclipse Galileo - 3.5"/>
  <choice value="None"
      label="None"/>
  <description>Choose the compatibility level of the target platform</description>
</setup:VariableTask>

If you want different choices, you have to define that in your override. Note it uses a annotation to mark it as a global variable so that it's saved in the user setup and that choice is reused in the next setup you create (so you'd have to use Show all variables to change it to a different choice the next time).

The value of this variable is used to control which named repository list will be is used by the targlets within your targlet tasks.
<?xml version="1.0" encoding="UTF-8"?>
<targlets:Targlet
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:targlets="http://www.eclipse.org/oomph/targlets/1.0"
    xsi:schemaLocation="http://www.eclipse.org/oomph/targlets/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Targlets.ecore"
    name="Xtext Target Platform"
    activeRepositoryList="${eclipse.target.platform}">

For every choice there should generally be a named list for that choice. I see Photon named lists are missing, but that choice is available in the project catalog. If you change the choices you inherit from the project catalog, keep in mind that the targlets defined in the project catalog only provide lists for the choices defined in the project catalog, so if you define addition named choices e.g., for Oxygen staging or Oxygen milestones, you have to supply the platform/release train update site(s) for that choice in one of your own targlets's named repository lists..


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Oomph and Target Platforms [message #1774009 is a reply to message #1773977] Mon, 09 October 2017 07:06 Go to previous message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Thanks Ed, this is a very useful information.
Previous Topic:What Oomph features include Updater and Authoring Tool?
Next Topic:Excluded Triggers available options
Goto Forum:
  


Current Time: Thu Mar 28 22:46:54 GMT 2024

Powered by FUDForum. Page generated in 0.01726 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top