cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ysapordermgmtb2baddon cannot be customized with ant extgen

nicolabeghin
Product and Topic Expert
Product and Topic Expert
0 Likes
876

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?

Accepted Solutions (1)

Accepted Solutions (1)

nicolabeghin
Product and Topic Expert
Product and Topic Expert
0 Likes

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

Answers (1)

Answers (1)

arvind-kumar_avinash
Active Contributor
0 Likes

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.

nicolabeghin
Product and Topic Expert
Product and Topic Expert
0 Likes

thanks could you explain what's the usage for such token?

arvind-kumar_avinash
Active Contributor
0 Likes

Hi - I have updated my answer to include a note about these configurations. Please let me know if you want me to explain further.

nicolabeghin
Product and Topic Expert
Product and Topic Expert
0 Likes

Thanks a lot! We already created the customized extension without the extensioninfo.xml addition you suggested, do you think this could cause problems? BTW right now it seems to work all good!

arvind-kumar_avinash
Active Contributor
0 Likes

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.