What Is A Hybris Cmd Template?
Lets Sympathize about Extgen and Modulegen with case
Extgen
How to create an extension in Hybris?
Ant extgen command can be used to create an extension.
We have to use emmet extgen command as below
Navigate to hybris\bin\platform path in command prompt
And use ant extgen command
Provide the required values
Specify the extension template,proper name of the extension and bundle proper noun while running this command
Extension template should be any of the existing extension templates which are populated when we run the ant extgen command
This command uses the specified extension template to create the structure of the new extension.
Name of the extension we provide will exist added as the name within the extensioninfo.xml file.
Now observe that new extension has been created inside hybris\bin\custom folder.
Update localextensions.xml
Once nosotros create the new extension we must add information technology inside localextensions.xml so that hybris will consider this extension during the build.
So add an extension within localextensions.xml as beneath
extension name="payment"
Payment – is the proper noun of the extension.
Make custom extension equally Extension Template
Nosotros can make our custom extension also equally extension template so that it appears in the list of extension templates during emmet extgen command
To attain this , we need to define the below tag in extensioninfo.xml
meta key= "extgen-template-extension" value= "truthful"
meta key="extgen-template-extension" value="truthful"
Adding this enables our extension to appear in the ant extgen command templates list.
Modulegen
Ant modulegen command can exist used to create the module.
It creates the prepare of extensions based on the module template we select.
Generally for B2B and B2C module , it creates 7 extensions which are logically related and grouped.
We take to use emmet modulegen control as beneath
Navigate to hybris\bin\platform path in control prompt
And utilize ant modulegen command
Specify the module template,name of the module and package proper noun while running this control
Module template should be whatever of the existing module templates which are populated when nosotros run the emmet modulegen command
This command uses the specified module template to create the fix of the extensions to the new module.
After the build success, detect the new set of extensions has been created inside hybris\bin\custom\training folder.
Subsequently the creation of extensions using modulegen, make sure to update the localextensions.xml file equally below
-
<extension name= 'trainingcockpits' />
-
<extension proper name= 'traininginitialdata' />
-
<extension name= 'trainingstorefront' />
-
<extension name= 'trainingfacades' />
-
<extension name= 'trainingfulfilmentprocess' />
-
<extension proper name= 'trainingtest' />
-
<extension proper name= 'trainingcore' />
<extension name='trainingcockpits' /> <extension name='traininginitialdata' /> <extension name='trainingstorefront' /> <extension name='trainingfacades' /> <extension name='trainingfulfilmentprocess' /> <extension name='trainingtest' /> <extension name='trainingcore' />
About the Author
What Is A Hybris Cmd Template?,
Source: http://javainsimpleway.com/extgen-and-modulegen/
Posted by: lentzwhimes.blogspot.com

0 Response to "What Is A Hybris Cmd Template?"
Post a Comment