<?xml version="1.0" encoding="UTF-8"?>
<setup:Configuration
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    label="Eclipse IDE Java 25 Upgrade">
  <annotation
      source="http://www.eclipse.org/oomph/setup/SystemProperties">
    <detail
        key="oomph.setup.p2.skip">
      <value>true</value>
    </detail>
    <detail
        key="oomph.setup.show.initial.progress">
      <value>true</value>
    </detail>
    <detail
        key="oomph.setup.trigger">
      <value>MANUAL</value>
    </detail>
  </annotation>
  <installation
      name="eclipse.ide.java.25.upgrade"
      label="Eclipse IDE Java 25 Upgrade">
    <setupTask
        xsi:type="setup:CompoundTask"
        filter="(!(jre.25.filter.installation.filter=true))"
        name="Java 25 Upgrade">
      <setupTask
          xsi:type="setup:VariableTask"
          type="JRE"
          name="installation.jre.25"
          defaultValue="${jre.location-25}"
          label="Java 25+ JRE Location">
        <choice
            value="${jre.location-26}"/>
        <choice
            value="${jre.location-27}"/>
      </setupTask>
      <setupTask
          xsi:type="setup:VariableTask"
          filter="(|(osgi.os=linux)(osgi.os=win32))"
          name="installation.jre.bin.25"
          value="${installation.jre.25/bin}"/>
      <setupTask
          xsi:type="setup:VariableTask"
          filter="(osgi.os=macosx)"
          name="installation.jre.bin.25"
          value="${installation.jre.25/Contents/Home/bin}"/>
      <setupTask
          xsi:type="setup:PreferenceTask"
          id="jre.25.filter.installation.filter.only-once"
          key="/configuration/org.eclipse.oomph.setup.core/variables/jre.25.filter.installation.filter"
          value="true">
        <description>
          Set the configuration variables preference to true
          such that the containing filtered compound task never performs again for the current installation.
        </description>
      </setupTask>
      <setupTask
          xsi:type="setup:EclipseIniTask"
          option="-Djava.security.manager"
          value="=allow"
          vm="true"
          remove="true"/>
      <setupTask
          xsi:type="setup:EclipseIniTask"
          predecessor="jre.25.filter.installation.filter.only-once"
          option="-vm"
          value="${installation.jre.bin.25}"/>
    </setupTask>
    <productVersion
        href="index:/org.eclipse.setup#//@productCatalogs[name='self']/@products[name='empty.product']/@versions[name='version']"/>
    <description>Upgrades the Eclipse IDE to run with Java 25.</description>
  </installation>
  <description>Eclipse IDE Java 25 Upgrade configures the IDE to run with Java 25.</description>
</setup:Configuration>
