如何在myStoreInitialData/resources(hybris)下更改MPEX

如何在myStoreInitialData/resources(hybris)下更改MPEX,hybris,Hybris,例如,其路径为: hybris/bin/custom/myStore/myStoreinitialdata/resources/myStoreinitialdata/import/sampledata/productCatalogs/catalogName/categories\u en.impex 但我想做点什么 # ----------------------------------------------------------------------- # [y] hybris Plat

例如,其路径为:

hybris/bin/custom/myStore/myStoreinitialdata/resources/myStoreinitialdata/import/sampledata/productCatalogs/catalogName/categories\u en.impex

但我想做点什么

# -----------------------------------------------------------------------
# [y] hybris Platform
#
# Copyright (c) 2018 SAP SE or an SAP affiliate company.  All rights reserved.
#
# This software is the confidential and proprietary information of SAP
# ("Confidential Information"). You shall not disclose such Confidential
# Information and shall use it only in accordance with the terms of the
# license agreement you entered into with SAP.
# -----------------------------------------------------------------------
# ImpEx for Importing Categories

# Macros / Replacement Parameter definitions
$productCatalog=__PRODUCT_CATALOG_NAME__
$productCatalogName=__PRODUCT_CATALOG_FULL_NAME__

initialdata下面有很多弹头。所以,我需要一些内部代码

在哪里执行此操作,
buildcallbacks

编辑


还好吗?

你在正确的位置。使用以下命令生成自定义扩展后:

$productCatalog=__myStore_PRODUCT_CATALOG_NAME__
你必须通过你的扩展来替换那些类型的变量。我认为最重要的是“核心”和“初始数据”扩展。因此,您必须查找并更改以下变量:

ant modulgen accelerator

您还必须调整文件夹结构以适应这些更改。查看InitialDataSystemSetup.javaCoreSystemSetup.java类。在那里,你会发现这些东西背后的逻辑方法,你正处在正确的位置。使用以下命令生成自定义扩展后:

$productCatalog=__myStore_PRODUCT_CATALOG_NAME__
你必须通过你的扩展来替换那些类型的变量。我认为最重要的是“核心”和“初始数据”扩展。因此,您必须查找并更改以下变量:

ant modulgen accelerator

您还必须调整文件夹结构以适应这些更改。查看InitialDataSystemSetup.javaCoreSystemSetup.java类。在那里,你可以找到这些东西背后逻辑的方法,我通过编辑buildcallbacksxml做的,我通过编辑buildcallbacksxml做的,是的,你必须编写基本上可以找到并替换作业的自定义目标。是的,你必须编写基本上可以找到并替换作业的自定义目标。我认为它与java代码无关,也许是关于xml或ant的。此方法来自initialdata,是否可以是方法“%SystemSetup”(type=type.PROJECT,process=process.ALL)public void createProjectData(最终SystemSetupContext上下文){/**为您配置的每个站点添加导入数据*/``是的,这是一种查找具有正确名称的impex文件的方法。只需一步一步地查看它。我认为它与java代码无关,可能是关于xml或ant的。此方法来自initialdata,是否可以是方法``@SystemSetup(type=type.PROJECT,process=process.ALL)public void createProjectData(final SystemSetupContext context){/**为您配置的每个站点添加导入数据*/``是的,这是一种查找具有正确名称的impex文件的方法。只需逐步执行即可