<?xml version="1.0" encoding="UTF-8"?>
<!--
- Licensed Materials - Property of IBM* and/or HCL**
- IBM UrbanCode Deploy
- (c) Copyright IBM Corporation 2011, 2017. All Rights Reserved.
- (c) Copyright HCL Technologies Ltd. 2018. All Rights Reserved.
-
- U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by
- GSA ADP Schedule Contract with IBM Corp.
-
- * Trademark of International Business Machines
- ** Trademark of HCL Technologies Limited
-->
<plugin-upgrade
        xmlns="http://www.urbancode.com/UpgradeXMLSchema_v1"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <migrate to-version="2">
    <migrate-command name="Remove Application from Application Center">
      <migrate-properties>
        <migrate-property name="appCenterJar" default="${PLUGIN_HOME}/lib/applicationcenterdeploytool.jar" />
        <migrate-property name="json4jJar" default="${PLUGIN_HOME}/lib/json4j.jar" />
      </migrate-properties>
    </migrate-command>

    <migrate-command name="Deploy Adapter to Worklight Server">
      <migrate-properties>
        <migrate-property name="worklightAntJar" default="${PLUGIN_HOME}/lib/worklight-ant.jar" />
      </migrate-properties>
    </migrate-command>

    <migrate-command name="Deploy Worklight Application to Worklight Server" old="Deploy Hybrid Application to Worklight Server">
      <migrate-properties>
        <migrate-property name="worklightAntJar" default="${PLUGIN_HOME}/lib/worklight-ant.jar" />
      </migrate-properties>
    </migrate-command>

    <migrate-command name="Upload Application to Application Center">
      <migrate-properties>
        <migrate-property name="appCenterJar" default="${PLUGIN_HOME}/lib/applicationcenterdeploytool.jar" />
        <migrate-property name="json4jJar" default="${PLUGIN_HOME}/lib/json4j.jar" />
      </migrate-properties>
    </migrate-command>
  </migrate>

  <migrate to-version="3">
    <migrate-command name="Remove Application from Application Center" />
    <migrate-command name="Deploy Adapter to Worklight Server">
      <migrate-properties>
        <migrate-property name="user" default="" />
        <migrate-property name="password" default="" />
      </migrate-properties>
    </migrate-command>
    <migrate-command name="Deploy Worklight Application to Worklight Server">
      <migrate-properties>
        <migrate-property name="user" default="" />
        <migrate-property name="password" default="" />
      </migrate-properties>
    </migrate-command>
    <migrate-command name="Upload Application to Application Center" />
  </migrate>

  <migrate to-version="4">
    <migrate-command name="Remove Application from Application Center" />
    <migrate-command name="Deploy Adapter to Worklight Server">
      <migrate-properties>
        <migrate-property name="runtime" default="" />
        <migrate-property name="secure" default="false" />
      </migrate-properties>
    </migrate-command>
    <migrate-command name="Delete Adapter from Worklight Server" />
    <migrate-command name="Change Worklight Application Access Rule on Worklight Server" />
    <migrate-command name="Deploy Worklight Application to Worklight Server">
      <migrate-properties>
        <migrate-property name="runtime" default="" />
        <migrate-property name="secure" default="false" />
      </migrate-properties>
    </migrate-command>
    <migrate-command name="Delete Worklight Application from Worklight Server" />
    <migrate-command name="Upload Application to Application Center" />
  </migrate>

  <migrate to-version="5">
    <migrate-command name="Remove Application from Application Center" />
    <migrate-command name="Deploy Adapter to Worklight Server" />
    <migrate-command name="Delete Adapter from Worklight Server" />
    <migrate-command name="Change Worklight Application Access Rule on Worklight Server" />
    <migrate-command name="Deploy Worklight Application to Worklight Server" />
    <migrate-command name="Delete Worklight Application from Worklight Server" />
    <migrate-command name="Upload Application to Application Center" />
  </migrate>

   <migrate to-version="6">
    <migrate-command name="Remove Application from Application Center" />
    <migrate-command name="Deploy Adapter to Worklight Server" />
    <migrate-command name="Delete Adapter from Worklight Server" />
    <migrate-command name="Change Worklight Application Access Rule on Worklight Server" />
    <migrate-command name="Deploy Worklight Application to Worklight Server" />
    <migrate-command name="Delete Worklight Application from Worklight Server" />
    <migrate-command name="Upload Application to Application Center" />
  </migrate>

   <migrate to-version="7">
    <migrate-command name="Remove Application from Application Center" />
    <migrate-command name="Deploy Adapter to Worklight Server" />
    <migrate-command name="Delete Adapter from Worklight Server" />
    <migrate-command name="Change Worklight Application Access Rule on Worklight Server" />
    <migrate-command name="Deploy Worklight Application to Worklight Server" />
    <migrate-command name="Delete Worklight Application from Worklight Server" />
    <migrate-command name="Upload Application to Application Center" />
  </migrate>

   <migrate to-version="8">
    <migrate-command name="Remove Application from Application Center" />
    <migrate-command name="Deploy Adapter to Worklight Server" />
    <migrate-command name="Delete Adapter from Worklight Server" />
    <migrate-command name="Change Worklight Application Access Rule on Worklight Server" />
    <migrate-command name="Deploy Worklight Application to Worklight Server" />
    <migrate-command name="Delete Worklight Application from Worklight Server" />
    <migrate-command name="Upload Application to Application Center" />
  </migrate>

  <migrate to-version="9"/>

  <migrate to-version="10">
      <migrate-command name="Deploy Adapter" old="Deploy Adapter to Worklight Server">
          <migrate-properties>
              <migrate-property name="serverpath" default="${p:environment/mfp.path}/mfpadmin" />
              <migrate-property name="runtime" default="${p:resource/mfp.runtime}" />
              <migrate-property name="adapter" default="${p:component/mfp.adapter}" />
              <migrate-property name="user" default="${p:resource/mfp.user}" />
              <migrate-property name="password" default="${p:resource/mfp.password}" />
              <migrate-property name="secure" default="false" />
              <migrate-property name="worklightAntJar" default="${p?:resource/worklightAntJAR}" />
          </migrate-properties>
      </migrate-command>
      <migrate-command name="Delete Adapter" old="Remove Adapter from Worklight Server">
          <migrate-properties>
              <migrate-property name="serverpath" default="${p:environment/mfp.path}/mfpadmin" />
              <migrate-property name="runtime" default="${p:resource/mfp.runtime}" />
              <migrate-property name="adapter" default="${p:component.name}" />
              <migrate-property name="user" default="${p:resource/mfp.user}" />
              <migrate-property name="password" default="${p:resource/mfp.password}" />
              <migrate-property name="secure" default="false" />
              <migrate-property name="worklightAntJar" default="${p?:resource/worklightAntJAR}" />
          </migrate-properties>
      </migrate-command>
      <migrate-command name="Deploy Application" old="Deploy Worklight Application to Worklight Server">
          <migrate-properties>
              <migrate-property name="serverpath" default="${p:environment/mfp.path}/mfpadmin" />
              <migrate-property name="runtime" default="${p:resource/mfp.runtime}" />
              <migrate-property name="wlapp" default="${p:resource/mfp.app}" />
              <migrate-property name="user" default="${p:resource/mfp.user}" />
              <migrate-property name="password" default="${p:resource/mfp.password}" />
              <migrate-property name="secure" default="false" />
              <migrate-property name="worklightAntJar" default="${p?:resource/worklightAntJAR}" />
          </migrate-properties>
      </migrate-command>
      <migrate-command name="Change Application Configuration" old="Change Worklight Application Access Rule on Worklight Server">
          <migrate-properties>
              <migrate-property name="serverpath" default="${p:environment/mfp.path}/mfpadmin" />
              <migrate-property name="runtime" default="${p:resource/mfp.runtime}" />
              <migrate-property name="wlappName" default="${p:component.name}" />
              <migrate-property name="env" default="${p:environment.name}" />
              <migrate-property name="version" default="${p:version.name}" />
              <migrate-property name="ruleFile" default="${p:component/mfp.config}" />
              <migrate-property name="user" default="${p:resource/mfp.user}" />
              <migrate-property name="password" default="${p:resource/mfp.password}" />
              <migrate-property name="secure" default="false" />
              <migrate-property name="worklightAntJar" default="${p?:resource/worklightAntJAR}" />
          </migrate-properties>
      </migrate-command>
      <migrate-command name="Delete Application" old="Remove Worklight Application from Worklight Server">
          <migrate-properties>
              <migrate-property name="serverpath" default="${p:environment/mfp.path}/mfpadmin" />
              <migrate-property name="runtime" default="${p:resource/mfp.runtime}" />
              <migrate-property name="wlappName" default="${p:component.name}" />
              <migrate-property name="environment" default="${p:environment.name}" />
              <migrate-property name="version" default="${p:version.name}" />
              <migrate-property name="user" default="${p:resource/mfp.user}" />
              <migrate-property name="password" default="${p:resource/mfp.password}" />
              <migrate-property name="secure" default="false" />
              <migrate-property name="worklightAntJar" default="${p?:resource/worklightAntJAR}" />
          </migrate-properties>
      </migrate-command>
      <migrate-command name="Upload Application to Application Center">
          <migrate-properties>
              <migrate-property name="serverpath" default="${p:environment/ac.path}" />
              <migrate-property name="context" default="${p:environment/ac.context}" />
              <migrate-property name="user" default="${p:environment/ac.user}" />
              <migrate-property name="password" default="${p:environment/ac.password}" />
              <migrate-property name="desc" default="${p?:component/ac.description}" />
              <migrate-property name="label" default="${p?:component/ac.label}" />
              <migrate-property name="file" default="${p:component/ac.appPath}" />
              <migrate-property name="appCenterJar" default="${p:resource/ac.DeployJar}" />
              <migrate-property name="json4jJar" default="${p:resource/ac.json4jJAR}" />
          </migrate-properties>
      </migrate-command>
      <migrate-command name="Remove Application from Application Center">
          <migrate-properties>
              <migrate-property name="serverpath" default="${p:environment/ac.path}" />
              <migrate-property name="context" default="${p:environment/ac.context}" />
              <migrate-property name="user" default="${p:environment/ac.user}" />
              <migrate-property name="password" default="${p:environment/ac.password}" />
              <migrate-property name="package" default="${p:component.name}" />
              <migrate-property name="appCenterJar" default="${p:resource/ac.DeployJar}" />
              <migrate-property name="json4jJar" default="${p:resource/ac.json4jJAR}" />
          </migrate-properties>
      </migrate-command>
  </migrate>

  <migrate to-version="11"/>
  <migrate to-version="12"/>
  <migrate to-version="13"/>
</plugin-upgrade>
