如何运行“蚂蚁更新"?在Hybris中仅使用“更新运行系统"? [英] How to run "ant update" in Hybris with only "Update Running System"?

查看:60
本文介绍了如何运行“蚂蚁更新"?在Hybris中仅使用“更新运行系统"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

构建Hybris项目后,我试图从命令行运行 ant更新,但是它运行 Update Running System 从数据库中清除hMC配置创建基本数据本地化类型(请参见下图):

I'm trying to run ant update from the command line after building my Hybris project but it runs Update Running System, Clear hMC Configuration from Database, Create essential data and Localize type (please refer the following image):

是否可以从命令行运行 ant update 命令,使其仅选择"更新正在运行的系统"?

Is there a way to run ant update command from command line so that it will only select "Update Running System"?

我可以通过 ant update 传递什么参数以仅运行"更新正在运行的系统",而不能运行任何其他选项?

What parameter can I pass with ant update to only run "Update Running System" and not any other options?

推荐答案

您可以使用命令 -DconfigFile =<您的文件> :

示例:

ant updatesystem -Dtenant=<my tenant> -DconfigFile=path/to/my/config.json

这是config.json的示例

And here is an example of the config.json

{
  "init": "Go",
  "initmethod": "update",
  "clearhmc": "true",
  "essential": "true",
  "localizetypes": "true",
  "solrfacetsearch_sample": "true",
  "hmc_sample": "true",
  "solrfacetsearchhmc_sample": "true",
  "customerreview_sample": "true",
  "voucher_sample": "true",
  "promotions_sample": "true",
  "basecommerce_sample": "true",
  "cms2_sample": "true",
  "cms2lib_sample": "true",
  "ticketsystem_sample": "true",
  "payment_sample": "true",
  "btg_sample": "true",
  "platformhmc_sample": "true",
  "commerceservices_sample": "true",
  "commercewebservicescommons_sample": "true",
  "acceleratorservices_sample": "true",
  "acceleratorcms_sample": "true",
  "yacceleratorfulfilmentprocess_sample": "true",
  "yacceleratorcore_sample": "true",
 ....
  "electronicsstore_importCoreData": [
    "yes"
  ],
  "electronicsstore_importSampleData": [
    "yes"
  ],
  "electronicsstore_activateSolrCronJobs": [
    "yes"
  ],
  "yacceleratortest_createTestData": [
    "yes"
  ],
  "yacceleratorcockpits_importCustomReports": [
    "yes"
  ]
}

如您所见,如初始化和更新SAP Hybris Commerce ,转到HAC,在网页中进行配置,然后单击转储配置.它将为您提供生成的json文件.

As you can see it's not so easy to implement this file, as suggested in, Initializing and Updating SAP Hybris Commerce, go to the HAC once, do you configuration in the webpage and click on Dump configuration. It will give you the generated json file.

这篇关于如何运行“蚂蚁更新"?在Hybris中仅使用“更新运行系统"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆