release version 1.11.0
This commit is contained in:
153
platform-backward-compat/src/main/features/features.xml
Normal file
153
platform-backward-compat/src/main/features/features.xml
Normal file
@ -0,0 +1,153 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~~~~~~licensing~~~~~~
|
||||
platform-backward-compat
|
||||
==========
|
||||
Copyright (C) 2020 - 2025 EmDev LLC
|
||||
==========
|
||||
You may not use this file except in accordance with the License Terms of the Copyright
|
||||
Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
Software for commercial purposes to provide services to third parties.
|
||||
|
||||
The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
Software provided by him will be suitable or not suitable for the specific purposes
|
||||
of the User, that the Software will meet all commercial and personal subjective
|
||||
expectations of the User, that the Software will work properly, without technical
|
||||
errors, quickly and uninterruptedly.
|
||||
|
||||
Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
or damage to data, property, etc.
|
||||
~~~~~~/licensing~~~~~~
|
||||
-->
|
||||
|
||||
<features name="${project.artifactId}-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.6.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.6.0 http://karaf.apache.org/xmlns/features/v1.6.0">
|
||||
|
||||
<!-- platform repo -->
|
||||
<repository>mvn:ru.entaxy.esb/platform/${project.version}/xml/features</repository>
|
||||
|
||||
<feature name="entaxy-backward-compatibility-modules" version="${project.version}">
|
||||
|
||||
<!-- @platform -->
|
||||
<feature dependency="true">entaxy-platform</feature>
|
||||
|
||||
<feature version="${project.version}">entaxy-backward-compatibility-resources</feature>
|
||||
|
||||
<feature version="${project.version}">entaxy-bc-system</feature>
|
||||
|
||||
<feature version="${project.version}">entaxy-bc-api</feature>
|
||||
|
||||
<feature version="${project.version}">entaxy-bc-impl</feature>
|
||||
|
||||
<feature version="${project.version}">entaxy-bc-management</feature>
|
||||
|
||||
<feature version="${project.version}">entaxy-bc-modules</feature>
|
||||
|
||||
</feature>
|
||||
|
||||
<!-- will be installed in assembly -->
|
||||
<feature name="entaxy-backward-compatibility-resources" version="${project.version}">
|
||||
<configfile finalname="${karaf.etc}/scripts/entaxy.bc.shell.script" override="true">
|
||||
mvn:ru.entaxy.platform/platform-backward-compat/${project.version}/script/entaxy.bc.shell
|
||||
</configfile>
|
||||
</feature>
|
||||
|
||||
<feature name="entaxy-bc-system" version="${project.version}" start-level="${bundle.startlevel.system}">
|
||||
<!-- @platform -->
|
||||
<feature dependency="true">entaxy-platform</feature>
|
||||
<configfile finalname="${karaf.etc}/ru.entaxy.esb.cfg" override="false">
|
||||
mvn:ru.entaxy.esb.system/system-parent/${project.version}/cfg/ru.entaxy.esb
|
||||
</configfile>
|
||||
<configfile finalname="${karaf.etc}/org.apache.felix.hc.generalchecks.BundlesStartedCheck-system.cfg" override="true">
|
||||
mvn:ru.entaxy.esb.system/system-parent/${project.version}/cfg/org.apache.felix.hc.generalchecks.BundlesStartedCheck-system
|
||||
</configfile>
|
||||
<bundle>mvn:ru.entaxy.esb.system.commons/system-commons/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.system.core/template/${project.version}</bundle>
|
||||
</feature>
|
||||
|
||||
<feature name="entaxy-bc-api" version="${project.version}" start-level="${bundle.startlevel.objects}">
|
||||
|
||||
<feature dependency="true">entaxy-bc-system</feature>
|
||||
|
||||
<bundle>mvn:ru.entaxy.platform.security.jaas/entaxy-legacy-auth-api/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.system.registry.systems/system-api/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.system.registry.connector/connector-api/${project.version}</bundle>
|
||||
|
||||
<bundle>mvn:ru.entaxy.esb.system.core.permission/permission-api/${project.version}</bundle>
|
||||
|
||||
<!--
|
||||
<capability>
|
||||
osgi.service;objectClass=org.hibernate.SessionFactory;effective:=active;
|
||||
</capability>
|
||||
-->
|
||||
</feature>
|
||||
|
||||
<feature name="entaxy-bc-impl" version="${project.version}" start-level="${bundle.startlevel.objects}">
|
||||
|
||||
<feature dependency="true">entaxy-bc-api</feature>
|
||||
|
||||
<bundle>mvn:ru.entaxy.platform.security.jaas/entaxy-legacy-auth/${project.version}</bundle>
|
||||
|
||||
<bundle>mvn:ru.entaxy.esb.system.registry.systems/system-impl/${project.version}</bundle>
|
||||
|
||||
<bundle>mvn:ru.entaxy.esb.system.registry.connector/connector-impl/${project.version}</bundle>
|
||||
|
||||
<bundle>mvn:ru.entaxy.esb.system.core.permission/permission-common/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.system.core.permission/permission-handler/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.system.core.permission/permission-component/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.system.core.permission/permission-impl/${project.version}</bundle>
|
||||
|
||||
<!--
|
||||
<capability>
|
||||
osgi.service;objectClass=org.hibernate.SessionFactory;effective:=active;
|
||||
</capability>
|
||||
-->
|
||||
<!--
|
||||
<capability>
|
||||
osgi.service;effective:=active;objectClass=javax.sql.DataSource;osgi.jndi.service.name=entaxy.esb.storage;
|
||||
</capability>
|
||||
-->
|
||||
</feature>
|
||||
|
||||
<feature name="entaxy-bc-management" version="${project.version}" start-level="${bundle.startlevel.management}">
|
||||
|
||||
<feature dependency="true">entaxy-bc-api</feature>
|
||||
<feature dependency="true">entaxy-bc-impl</feature>
|
||||
|
||||
<bundle>mvn:ru.entaxy.platform.backward-compat/blueprint-generator-service/${project.version}</bundle>
|
||||
|
||||
<bundle>mvn:ru.entaxy.esb.system.core.dispatcher/dispatcher/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.system.management.bundle.jpa/bundle-service/${project.version}</bundle>
|
||||
|
||||
<bundle>mvn:ru.entaxy.esb.system.management.bundle.manager/bundle-manager/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.system.management.connector.manager/connector-manager/${project.version}</bundle>
|
||||
|
||||
<bundle>mvn:ru.entaxy.esb.system.management.profile.manager/profile-manager/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.system.management.bridge.profile.manager/bridge-profile-manager/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.system.management.route.manager/route-manager/${project.version}</bundle>
|
||||
|
||||
<bundle>mvn:ru.entaxy.esb.system.management.permission.manager/permission-manager/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.esb.system.auth.basic.htpasswd/htpasswd/${project.version}</bundle>
|
||||
|
||||
<bundle>mvn:ru.entaxy.esb.system.management/system-management-api/${project.version}</bundle>
|
||||
|
||||
<!--
|
||||
<capability>
|
||||
osgi.service;objectClass=org.hibernate.SessionFactory;effective:=active;
|
||||
</capability>
|
||||
-->
|
||||
</feature>
|
||||
|
||||
<feature name="entaxy-bc-modules" version="${project.version}" start-level="${bundle.startlevel.management}">
|
||||
<bundle>mvn:ru.entaxy.platform.backward-compat/profile-management-service-adapters/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.platform.backward-compat/profile-storage/${project.version}</bundle>
|
||||
<bundle>mvn:ru.entaxy.platform.backward-compat/connector-storage/${project.version}</bundle>
|
||||
</feature>
|
||||
|
||||
</features>
|
@ -0,0 +1,60 @@
|
||||
entaxy:back-comp = {
|
||||
|
||||
service = (service:get org.apache.karaf.features.FeaturesService)
|
||||
|
||||
if { $1'' equals "install" } {
|
||||
|
||||
# check repo
|
||||
_repo = (feature:repo-list | grep ru.entaxy.platform/platform-backward-compat)
|
||||
_repo_length = ($_repo length)
|
||||
if { $_repo_length'' equals "0" } {
|
||||
echo "Installing feature repo ru.entaxy.platform/platform-backward-compat/${project.version}"
|
||||
feature:repo-add mvn:ru.entaxy.platform/platform-backward-compat/${project.version}/xml/features
|
||||
}
|
||||
|
||||
_platform_feature = ($service getFeature entaxy-platform)
|
||||
_feature_id = $_platform_feature getId
|
||||
_status = ($service getState $_feature_id) toString
|
||||
|
||||
if { $_status equals "Uninstalled" } {
|
||||
echo "Entaxy Platform not found, installation aborted"
|
||||
} else {
|
||||
_bc_feature = ($service getFeature entaxy-backward-compatibility-modules)
|
||||
_feature_id = $_bc_feature getId
|
||||
_status = ($service getState $_feature_id) toString
|
||||
|
||||
if { $_status equals "Uninstalled" } {
|
||||
echo "Installing feature 'entaxy-backward-compatibility-modules'"
|
||||
feature:install -r -v entaxy-backward-compatibility-modules
|
||||
echo
|
||||
echo " --> DONE"
|
||||
} else {
|
||||
echo "Feature 'entaxy-backward-compatibility-modules' is already installed"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} else {
|
||||
if { $1'' equals "uninstall" } {
|
||||
echo "Uninstalling feature 'entaxy-backward-compatibility-modules'"
|
||||
feature:uninstall -r -v entaxy-backward-compatibility-modules
|
||||
echo
|
||||
echo " --> DONE"
|
||||
} else {
|
||||
|
||||
_bc_feature = ($service getFeature entaxy-backward-compatibility-modules)
|
||||
_feature_id = $_bc_feature getId
|
||||
_status = ($service getState $_feature_id) toString
|
||||
|
||||
if { $_status equals "Uninstalled" } {
|
||||
echo
|
||||
echo " --> UNINSTALLED"
|
||||
} else {
|
||||
echo
|
||||
echo " --> INSTALLED"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
<!-- -->
|
||||
<configfile finalname="scripts/entaxy.bc.shell.script" override="true">
|
||||
mvn:ru.entaxy.platform/platform-backward-compat/1.11.0/script/entaxy.bc.shell
|
||||
</configfile>
|
||||
<!-- -->
|
Reference in New Issue
Block a user