Installation Based on Specified Extensions

The localextensions.xml file allows you to configure the scope of extensions that you require in your SAP Commerce installation. There is no need to build a system with a full range of extensions if you are only planning to work with some. Reducing the extension scope speeds up the build process.

This approach differs from using Installer recipes where you automatically install SAP Commerce with a desired application, for example B2C Accelerator.

The localextensions.xml file doesn't exist in the SAP Commerce download package. It is created as a copy from the extensions.xml file during the creation of the <HYBRIS_BIN_DIR> after building SAP Commerce. The general rule is that once localextensions.xml is created, it overrides the extensions.xml file.

The extensions.xml file includes extension configuration but most of it is commented out. When created as a copy of extensions.xml, your localextensions.xml file includes the same extension configuration. As a result, the only extensions loaded are those specified in the uncommented part of the configuration, and the essential extensions located in the <HYBRIS_BIN_DIR>/platform/ext directory. For that reason, you have to configure your localextensions.xml manually.

File Name

File Location

Description

localextensions.xml

<HYBRIS_CONFIG_DIR>

Modify this file to load or disable specific extensions.

The localextensions.xml file overrides the extensions.xml file.

extensions.xml

<HYBRIS_BIN_DIR>/platform

Do not modify this file.

This file is used as a template and a fallback for the localextensions.xml file. Use localextensions.xml instead.

To check which file you use, look at your console output. For example:

...
 [echo] Extension file used: /Users/hybris/config/localextensions.xml
...

When you first build SAP Commerce, it is best to use the Installer to generate the localextensions.xml file. As a result, the file may list most of the extensions that you want in your custom configuration if you use an appropriate recipe. Alternatively, you can use the ant command line options to quickly generate localextensions.xml to set up a build and deploy only those extensions that you are planning to work with.

For information about creating a localextensions.xml file using ant options, see Ant Command Line Options.