on ‎2019 Mar 01 2:52 PM
SAP SOM addon extension ysapordermgmtb2baddon is missing extgen.properties file required for ant extgen. Missing this file, we cannot create a custom extension out of it.
extgen.properties in source extension not found! this is not a template!
ref. https://help.hybris.com/1811/hcd/8c94f7fa86691014ab79c9c12986d11f.html
This AddOn is a template and should be copied to a custom extension via ant extgen, like yb2bacceleratorstorefront. It contains some of its jsp or tag files, slightly changed according to the needs of SAP synchronous order management.
How are we supposed to proceed, other than editing the standard code?
Request clarification before answering.
As of right now, we solved by manually crafting the missing extgen.properties like below:
YEXTNAME_TOKEN=ysapordermgmtb2baddon
YPACKAGE_TOKEN=de.hybris.platform.sap.ysapordermgmtb2baddon
YMANAGER_TOKEN=Ysapordermgmtb2baddonManager
YCLASSPREFIX_TOKEN=Ysapordermgmtb2baddon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Certainly, it is a miss from SAP/Hybris. The addon, ysapordermgmtb2baddon is a template extension and also listed in Available Extension Templates list at https://help.hybris.com/1811/hcd/f3e96825c2f647be93191293bf8533cf.html
a. Create an extgen.properties with the following content:
YEXTNAME_TOKEN=ysapordermgmtb2baddon
YPACKAGE_TOKEN=de.hybris.platform.sap.ysapordermgmtb2baddon
YMANAGER_TOKEN=Ysapordermgmtb2baddonManager
YCLASSPREFIX_TOKEN=Ysapordermgmtb2baddon
b. Add the following into extensioninfo.xml:
<meta key="extgen-template-extension" value="true"/>
Note: please check hybris/bin/platform/resources/ant/extgen.xml if you want to understand how these configurations work. Note that extgen.xml is called by hybris/bin/platform/resources/ant/antmacros.xml which in turn is called by hybris/bin/platform/extgen/build.xml.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As long as you have already generated the extension, there is nothing to worry. However, I am just wondering how the extension got generated without <meta key="extgen-template-extension" value="true"/>. I need to check if there has been any change from Hybris in the required configuration for extension generation.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.