ANI*_*NIL 3 java ant deployment hybris devops
ant update构建 Hybris 项目后,我尝试从命令行运行,但它运行更新运行系统、从数据库清除 hMC 配置、创建基本数据和本地化类型(请参阅下图):
有没有办法从命令行运行ant update命令,以便它只选择“更新运行系统”?
我可以传递什么参数ant update来只运行“更新运行系统”而不是任何其他选项?
您可以使用以下命令-DconfigFile=<your file>:
例子:
ant updatesystem -Dtenant=<my tenant> -DconfigFile=path/to/my/config.json
Run Code Online (Sandbox Code Playgroud)
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"
]
}
Run Code Online (Sandbox Code Playgroud)
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.
| 归档时间: |
|
| 查看次数: |
13745 次 |
| 最近记录: |