Implement workaround for sap + magento.mapping modules conflicting when co-installed.
authorStefan Hühner <stefan.huehner@openbravo.com>
Wed, 07 Aug 2019 09:35:17 +0200
changeset 697 02cbfed217ee
parent 696 fedc4097a812
child 698 a093c6595df5
Implement workaround for sap + magento.mapping modules conflicting when co-installed.
Remove magento.mappings automatically when creating merged.json file
create-mod-merged.py
merged.json
--- a/create-mod-merged.py	Wed Aug 07 09:33:11 2019 +0200
+++ b/create-mod-merged.py	Wed Aug 07 09:35:17 2019 +0200
@@ -44,6 +44,10 @@
 # Remove normal sampledata module as having both will fail
 del mods_by_javapackage['org.openbravo.retail.sampledata']
 
+# 2 modules cannot be co-installed (sap connector + magento mappings)
+# As pragmatic workaround: remove magento.mappings from merged to it failing
+del mods_by_javapackage['org.openbravo.service.integration.magento.mappings']
+
 # sorted output for mods
 for javapackage in sorted(mods_by_javapackage.keys()):
     mod = mods_by_javapackage[javapackage]
--- a/merged.json	Wed Aug 07 09:33:11 2019 +0200
+++ b/merged.json	Wed Aug 07 09:35:17 2019 +0200
@@ -1859,14 +1859,6 @@
 		{
 			"method": "hg",
 			"params": {
-				"url": "PMODS/JAVAPACKAGE",
-				"ver": "tip"
-			},
-			"javapackage": "org.openbravo.service.integration.magento.mappings"
-		},
-		{
-			"method": "hg",
-			"params": {
 				"url": "MODS/JAVAPACKAGE",
 				"ver": "tip"
 			},