gradle - Hybris安装中缺少build.xml错误

标签 gradle ant hybris

我正在尝试安装Hybris 6.6。尝试执行时出现以下错误:

install.bat -r b2c_acc_plus

我得到的错误是:
c:\Practice\installer>install.bat -r b2c_acc_plus
Java version: 1.8.0_152
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
        at build_3c3xvl01rtn1sabh2yuajgw9g.run(C:\Practice\installer\recipes\b2c_acc_plus\build.gradle:124)
:recipes/b2c_acc_plus:setup
Executing: createConfig...
Buildfile: build.xml does not exist!
Build failed
Could not execute createConfig ant target
:recipes/b2c_acc_plus:setup FAILED

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Practice\installer\recipes\b2c_acc_plus\build.gradle' line: 128

* What went wrong:
Execution failed for task ':recipes/b2c_acc_plus:setup'.
> java.io.FileNotFoundException: C:\Practice\hybris\config\local.properties (The system cannot find the path specified)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.798 secs
Problem with java process - finished with non-zero exit code (1)

我试图找到必须放置build.xml的位置,但也找不到相同的位置。

尝试使用 b2c_acc 配方进行安装时,安装程​​序将引发相同的错误。似乎没有任何作用。任何帮助表示赞赏。

编辑:

解决方案已添加。感谢所有提供帮助的人。 :)

最佳答案

我发现还有另一种方法可以完成它。

您可以转到%hybris_home_dir%/hybris/bin/platform
ant clean all
在那里,其次
ant modulegen

关于gradle - Hybris安装中缺少build.xml错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48518162/

相关文章:

android - 在 Maven 中心上传库

java - 如何在 Ant 属性中添加换行符

java - Ant 与 hudson war

java - Hybris 更新问题 - azure.abstractbundler6307sn 表不存在

git - Gradle:如何在任务中克隆一个 git repo?

spring-boot - 在Spring Boot中运行Cassandra

Ant: "Duplicated project name in import"带有导入的构建文件

gradle - 在gradle脚本中调用ant任务

docker - 如何将我的Hybris项目转换为Docker镜像

android - Gradle 编译选项可以自动影响多模块吗?(dexOptions,aaptOptions,lintOptions)