<?xml version="1.0" encoding="UTF-8"?>
<setup:Project
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:git="http://www.eclipse.org/oomph/setup/git/1.0"
    xmlns:jdt="http://www.eclipse.org/oomph/setup/jdt/1.0"
    xmlns:mylyn="http://www.eclipse.org/oomph/setup/mylyn/1.0"
    xmlns:pde="http://www.eclipse.org/oomph/setup/pde/1.0"
    xmlns:predicates="http://www.eclipse.org/oomph/predicates/1.0"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0"
    xmlns:setup.targlets="http://www.eclipse.org/oomph/setup/targlets/1.0"
    xmlns:setup.workingsets="http://www.eclipse.org/oomph/setup/workingsets/1.0"
    xmlns:workingsets="http://www.eclipse.org/oomph/workingsets/1.0"
    xsi:schemaLocation="http://www.eclipse.org/oomph/setup/git/1.0 https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/models/Git.ecore http://www.eclipse.org/oomph/setup/jdt/1.0 https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/models/JDT.ecore http://www.eclipse.org/oomph/setup/mylyn/1.0 https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/models/Mylyn.ecore http://www.eclipse.org/oomph/setup/pde/1.0 https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/models/PDE.ecore http://www.eclipse.org/oomph/predicates/1.0 https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/models/Predicates.ecore http://www.eclipse.org/oomph/setup/targlets/1.0 https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/models/SetupTarglets.ecore http://www.eclipse.org/oomph/setup/workingsets/1.0 https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/models/SetupWorkingSets.ecore http://www.eclipse.org/oomph/workingsets/1.0 https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/models/WorkingSets.ecore"
    name="swtbot"
    label="SWTBot">
  <setupTask
      xsi:type="jdt:JRETask"
      version="JavaSE-21"
      location="${jre.location-21}">
    <description>Define the JRE needed to compile and run the Java projects of ${scope.project.label}</description>
  </setupTask>
  <setupTask
      xsi:type="setup:EclipseIniTask"
      option="-Xmx"
      value="1024m"
      vm="true">
    <description>Set the heap space needed to work with the projects of ${scope.project.label}</description>
  </setupTask>
  <setupTask
      xsi:type="setup:EclipseIniTask"
      option="-Doomph.redirection.swtbot"
      value="=https://raw.githubusercontent.com/eclipse-swtbot/org.eclipse.swtbot/master/devtools/oomph/SWTBot.setup->${git.clone.location|uri}/devtools/oomph/SWTBot.setup"
      vm="true"/>
  <setupTask
      xsi:type="setup:ResourceCreationTask"
      excludedTriggers="STARTUP MANUAL"
      targetURL="${workspace.location|uri}/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml"
      encoding="UTF-8">
    <description>Initialize JDT's package explorer to show working sets as its root objects</description>
    <content>
      &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>
      &lt;section name=&quot;Workbench&quot;>
          &lt;section name=&quot;org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart&quot;>
              &lt;item value=&quot;true&quot; key=&quot;group_libraries&quot;/>
              &lt;item value=&quot;false&quot; key=&quot;linkWithEditor&quot;/>
              &lt;item value=&quot;2&quot; key=&quot;layout&quot;/>
              &lt;item value=&quot;2&quot; key=&quot;rootMode&quot;/>
              &lt;item value=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;packageExplorer configured=&amp;quot;true&amp;quot; group_libraries=&amp;quot;1&amp;quot; layout=&amp;quot;2&amp;quot; linkWithEditor=&amp;quot;0&amp;quot; rootMode=&amp;quot;2&amp;quot; sortWorkingSets=&amp;quot;false&amp;quot; workingSetName=&amp;quot;&amp;quot;&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;localWorkingSetManager&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;workingSet editPageId=&amp;quot;org.eclipse.jdt.internal.ui.OthersWorkingSet&amp;quot; factoryID=&amp;quot;org.eclipse.ui.internal.WorkingSetFactory&amp;quot; id=&amp;quot;1382792884467_1&amp;quot; label=&amp;quot;Other Projects&amp;quot; name=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;/localWorkingSetManager&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;activeWorkingSet workingSetName=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;allWorkingSets workingSetName=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;/packageExplorer&amp;gt;&quot; key=&quot;memento&quot;/>
          &lt;/section>
      &lt;/section>

    </content>
  </setupTask>
  <setupTask
      xsi:type="setup:VariableTask"
      name="eclipse.target.platform"
      defaultValue="${eclipse.target.platform.latest}"
      storageURI="scope://Workspace"/>
  <setupTask
      xsi:type="setup:CompoundTask"
      name="Eclipse IDE Plugins">
    <setupTask
        xsi:type="setup.p2:P2Task"
        label="Eclipse SDK">
      <requirement
          name="org.eclipse.sdk.feature.group"/>
      <requirement
          name="org.eclipse.pde.api.tools.ee.feature.feature.group"
          optional="true"/>
    </setupTask>
    <setupTask
        xsi:type="setup.p2:P2Task"
        id="p2.egit"
        label="EGit"
        licenseConfirmationDisabled="true">
      <requirement
          name="org.eclipse.egit.feature.group"/>
      <repository
          url="http://download.eclipse.org/egit/updates"/>
      <description>Git connector</description>
    </setupTask>
    <setupTask
        xsi:type="setup.p2:P2Task"
        id="p2.mylyn"
        label="Mylyn"
        licenseConfirmationDisabled="true">
      <requirement
          name="org.eclipse.mylyn.bugzilla.feature.feature.group"/>
      <requirement
          name="org.eclipse.mylyn.builds.feature.feature.group"/>
      <requirement
          name="org.eclipse.mylyn.context.feature.feature.group"/>
      <requirement
          name="org.eclipse.mylyn.gerrit.feature.feature.group"/>
      <requirement
          name="org.eclipse.mylyn.git.feature.feature.group"/>
      <requirement
          name="org.eclipse.mylyn.jenkins.feature.feature.group"/>
      <requirement
          name="org.eclipse.mylyn.ide.feature.feature.group"/>
      <requirement
          name="org.eclipse.mylyn.jdt.feature.feature.group"/>
      <requirement
          name="org.eclipse.mylyn.monitor.feature.feature.group"/>
      <requirement
          name="org.eclipse.mylyn.pde.feature.feature.group"/>
      <requirement
          name="org.eclipse.mylyn.tasks.feature.feature.group"/>
      <requirement
          name="org.eclipse.mylyn.wikitext.feature.feature.group"/>
      <requirement
          name="org.eclipse.mylyn.egit.feature.feature.group"/>
      <repository
          url="https://download.eclipse.org/mylyn/updates/release/latest"/>
      <description>Task and build connector</description>
    </setupTask>
    <setupTask
        xsi:type="setup.p2:P2Task"
        label="SpotBugs">
      <requirement
          name="com.github.spotbugs.plugin.eclipse.feature.group"
          optional="true"/>
      <repository
          url="https://spotbugs.github.io/eclipse/"/>
    </setupTask>
    <setupTask
        xsi:type="setup.p2:P2Task"
        label="Oomph Extensions">
      <requirement
          name="org.eclipse.oomph.setup.git.feature.group"/>
      <requirement
          name="org.eclipse.oomph.setup.jdt.feature.group"/>
      <requirement
          name="org.eclipse.oomph.setup.maven.feature.group"/>
      <requirement
          name="org.eclipse.oomph.setup.mylyn.feature.group"/>
      <requirement
          name="org.eclipse.oomph.setup.pde.feature.group"/>
      <requirement
          name="org.eclipse.oomph.setup.projectset.feature.group"/>
      <requirement
          name="org.eclipse.oomph.setup.projects.feature.group"/>
      <requirement
          name="org.eclipse.oomph.setup.targlets.feature.group"/>
      <requirement
          name="org.eclipse.oomph.setup.ui.ide.feature.group"/>
      <requirement
          name="org.eclipse.oomph.setup.workbench.feature.group"/>
      <requirement
          name="org.eclipse.oomph.setup.workingsets.feature.group"/>
    </setupTask>
    <setupTask
        xsi:type="setup.p2:P2Task"
        label="Eclemma Jacoco">
      <requirement
          name="org.eclipse.eclemma.feature.feature.group"
          optional="true"/>
      <repository
          url="https://download.eclipse.org/eclemma/releases"/>
    </setupTask>
  </setupTask>
  <setupTask
      xsi:type="setup:CompoundTask"
      name="org.eclipse.jdt.launching">
    <setupTask
        xsi:type="setup:PreferenceTask"
        key="/instance/org.eclipse.jdt.launching/org.eclipse.jdt.launching.PREF_STRICTLY_COMPATIBLE_JRE_NOT_AVAILABLE"
        value="ignore"/>
  </setupTask>
  <setupTask
      xsi:type="setup:CompoundTask"
      name="org.eclipse.mylyn.team.ui">
    <setupTask
        xsi:type="setup:PreferenceTask"
        key="/instance/org.eclipse.mylyn.team.ui/org.eclipse.mylyn.team.commit.template"
        value="[$${task.key}] $${task.description}&#xD;&#xA;&#xD;&#xA;$${task.url}"/>
  </setupTask>
  <setupTask
      xsi:type="git:GitCloneTask"
      id="git.clone"
      remoteURI="eclipse-swtbot/org.eclipse.swtbot">
    <annotation
        source="http://www.eclipse.org/oomph/setup/InducedChoices">
      <detail
          key="inherit">
        <value>github.remoteURIs</value>
      </detail>
      <detail
          key="label">
        <value>SWT GitHub Repository</value>
      </detail>
      <detail
          key="target">
        <value>remoteURI</value>
      </detail>
    </annotation>
    <description>${scope.project.label}</description>
  </setupTask>
  <setupTask
      xsi:type="setup.targlets:TargletTask">
    <targlet
        name="${scope.project.label}">
      <requirement
          name="org.eclipse.sdk.feature.group"/>
      <requirement
          name="org.eclipse.swtbot.nebula.gallery.feature.group"/>
      <requirement
          name="*"/>
      <sourceLocator
          rootFolder="${git.clone.location}"
          locateNestedProjects="true"/>
      <repositoryList>
        <repository
            url="https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/${eclipse.target.platform}"/>
        <repository
            url="http://download.eclipse.org/cbi/updates/license"/>
        <repository
            url="http://download.eclipse.org/nebula/snapshot/"/>
        <repository
            url="http://download.eclipse.org/nattable/snapshots/latest/repository/"/>
        <repository
            url="https://download.eclipse.org/tools/gef/classic/milestone/latest"/>
      </repositoryList>
    </targlet>
  </setupTask>
  <setupTask
      xsi:type="setup.workingsets:WorkingSetTask"
      id="swtbot.workings">
    <workingSet
        name="${scope.project.label} All">
      <predicate
          xsi:type="predicates:AndPredicate">
        <operand
            xsi:type="predicates:RepositoryPredicate"
            project="org.eclipse.swtbot"/>
      </predicate>
    </workingSet>
    <workingSet
        name="${scope.project.label} Tests">
      <predicate
          xsi:type="predicates:AndPredicate">
        <operand
            xsi:type="predicates:RepositoryPredicate"
            project="org.eclipse.swtbot"/>
        <operand
            xsi:type="predicates:NamePredicate"
            pattern="org\.eclipse\.swtbot\..*\.test"/>
      </predicate>
    </workingSet>
    <workingSet
        name="${scope.project.label} Bundles">
      <predicate
          xsi:type="predicates:AndPredicate">
        <operand
            xsi:type="predicates:RepositoryPredicate"
            project="org.eclipse.swtbot"/>
        <operand
            xsi:type="predicates:NaturePredicate"
            nature="org.eclipse.pde.PluginNature"/>
        <operand
            xsi:type="workingsets:ExclusionPredicate"
            excludedWorkingSet="//'swtbot.workings'/@workingSets[name='${scope.project.label}%20Tests']"/>
      </predicate>
    </workingSet>
    <workingSet
        name="${scope.project.label} Features">
      <predicate
          xsi:type="predicates:AndPredicate">
        <operand
            xsi:type="predicates:RepositoryPredicate"
            project="org.eclipse.swtbot"/>
        <operand
            xsi:type="predicates:NaturePredicate"
            nature="org.eclipse.pde.FeatureNature"/>
        <operand
            xsi:type="workingsets:ExclusionPredicate"
            excludedWorkingSet="//'swtbot.workings'/@workingSets[name='${scope.project.label}%20Tests']"/>
      </predicate>
    </workingSet>
    <workingSet
        name="${scope.project.label} Releng">
      <predicate
          xsi:type="predicates:AndPredicate">
        <operand
            xsi:type="predicates:RepositoryPredicate"
            project="org.eclipse.swtbot"/>
        <operand
            xsi:type="workingsets:ExclusionPredicate"
            excludedWorkingSet="//'swtbot.workings'/@workingSets[name='${scope.project.label}%20Tests']"/>
        <operand
            xsi:type="predicates:OrPredicate">
          <operand
              xsi:type="predicates:NamePredicate"
              pattern="target-platforms"/>
          <operand
              xsi:type="predicates:NamePredicate"
              pattern="org\.eclipse\.swtbot\.updatesite"/>
        </operand>
      </predicate>
    </workingSet>
    <description>The dynamic working sets for ${scope.project.label}</description>
  </setupTask>
  <setupTask
      xsi:type="pde:APIBaselineTask"
      name="swtbot-latest"
      version="4.3.0"
      location="${installation.location}/api/v4.3/"
      remoteURI="https://download.eclipse.org/technology/swtbot/releases/4.3.0/repository.zip"/>
  <setupTask
      xsi:type="mylyn:MylynQueriesTask"
      repositoryURL="https://bugs.eclipse.org/bugs"
      userID="${bugzilla.id}"
      password="${eclipse.user.password}">
    <query summary="SWTBot Bugs"
        url="https://bugs.eclipse.org/bugs/buglist.cgi?product=SWTBot&amp;bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;bug_severity=blocker&amp;bug_severity=critical&amp;bug_severity=major&amp;bug_severity=normal&amp;bug_severity=minor&amp;bug_severity=trivial"/>
  </setupTask>
  <setupTask
      xsi:type="mylyn:MylynQueriesTask"
      connectorKind="org.eclipse.mylyn.gerrit"
      repositoryURL="https://git.eclipse.org/r"
      userID="${bugzilla.id}"
      password="${eclipse.user.password}">
    <query summary="SWTBot Reviews">
      <attribute
          key="gerrit query type"
          value="custom"/>
      <attribute
          key="gerrit query project"
          value="swtbot/org.eclipse.swtbot"/>
      <attribute
          key="gerrit query string"
          value="project:swtbot/org.eclipse.swtbot status:open branch:master"/>
    </query>
  </setupTask>
  <setupTask
      xsi:type="mylyn:MylynBuildsTask"
      serverURL="https://hudson.eclipse.org/swtbot/">
    <buildPlan
        name="swtbot-gerrit"/>
    <buildPlan
        name="SWTBot-Sonar"/>
    <buildPlan
        name="swtbot-tycho"/>
  </setupTask>
  <stream name="master"/>
  <logicalProjectContainer
      xsi:type="setup:ProjectCatalog"
      href="index:/org.eclipse.setup#//@projectCatalogs[name='org.eclipse']"/>
  <description>SWTBot is an open-source Java based UI/functional testing tool for testing SWT, Eclipse and GEF based applications.</description>
</setup:Project>
