
installPlan = new java.util.ArrayList
$installPlan add [operation=feature upgrade=(__TRUE__) repo="mvn:ru.entaxy.esb.underlying/entaxy-underlying-features/${_version}/xml/features" feature="entaxy-underlying-configuration" reboot="force" sleep=10]
$installPlan add [operation=feature upgrade=(__TRUE__) repo="mvn:ru.entaxy.esb/platform/${_version}/xml/basics" feature="entaxy-karaf-basic" reboot="false"]
$installPlan add [operation=feature upgrade=(__TRUE__) repo="mvn:ru.entaxy.esb/platform/${_version}/xml/basics" feature="entaxy-karaf-runtime" reboot="false"]
$installPlan add [operation=feature upgrade=(__TRUE__) repo="mvn:ru.entaxy.esb/platform/${_version}/xml/legacy" feature="entaxy-legacy" reboot="false"]
$installPlan add [operation=feature upgrade=(__TRUE__) repo="mvn:ru.entaxy.esb.platform.runtime/base/${_version}/xml/support" feature="base-support" reboot="false"]
$installPlan add [operation=feature upgrade=(__TRUE__) repo="mvn:ru.entaxy.esb.platform.runtime/base/${_version}/xml/support" feature="generator" reboot="false"]
$installPlan add [operation=feature upgrade=(__TRUE__) repo="mvn:ru.entaxy.esb.platform.runtime/base/${_version}/xml/features" feature="entaxy-platform-base" reboot="false"]


# need this due to issue of loosing etc/org.ops4j.pax.url.mvn.cfg
# while updating artifact-manager
$installPlan add [operation=backup action=create source="${karafEtc}/${mvnCfg}" overwrite=(__FALSE__)]

$installPlan add [operation=feature upgrade=(__TRUE__) repo="mvn:ru.entaxy.esb.platform.runtime/core/${_version}/xml/features" feature="entaxy-platform-core" reboot="false"]

$installPlan add [operation=backup action=restore source="${karafEtc}/${mvnCfg}"]

$installPlan add [operation=feature upgrade=(__TRUE__) repo="mvn:ru.entaxy.esb/platform/${_version}/xml/features" feature="entaxy-platform" reboot="false" sleep=10]

$installPlan add [operation=backup action=clean source="${karafEtc}/${mvnCfg}"]

#$installPlan add [operation=empty reboot="false"]