如何在hybris环境中使用svn代码库(自定义扩展)?

时间:2015-06-14 03:16:08

标签: hybris

我在本地机器上的svn和hybris包中有hybris自定义扩展。我需要使用svn自定义扩展,以便我可以将我的模块更改/更新提交到svn服务器。如何在localextensions.xml中编辑自定义扩展路径以使用带有hybris包的svn代码?

1 个答案:

答案 0 :(得分:1)

So my understanding is you want your extensions save in a different folder than say hybris/bin/myextensions, is this correct?

If so this is not a problem. To do this create your folder where you want to save your extensions, like you've said you have done. Open up your localextensions.xml in the config.

Include your extensions like this:

<extension>
  
  <!--
    There should be a path dir defined within the config like below
  -->
  
  <path dir="${HYBRIS_BIN_DIR}" />
  
  <!--
    Navigate to where your extensions are defined, you can create your 
    own path variable above if you want too, this is just an example for you
  -->
  <extension name="${HYBRIS_BIN_DIR}/../../myExtensionsFolder/extension1" />
  <extension name="${HYBRIS_BIN_DIR}/../../myExtensionsFolder/extension2" />
  
</extension>

Once you build these extensions should be built too.