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

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

问题描述

我在构建 Hybris 项目后尝试从命令行运行 ant update,但它运行 更新运行系统从数据库清除 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"
  ]
}

如您所见,实现此文件并不容易.正如转到 HAC 一次,在网页中进行配置,然后单击 Dump configuration.它将为您提供生成的 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 your configuration in the webpage and click on Dump configuration. It will give you the generated json file.

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

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