0
点赞
收藏
分享

微信扫一扫

在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile

伽马星系 2022-02-11 阅读 55


错误的 buildfile:我的用户目录下:

在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile_xml

为什么是这个目录?

在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile_java_02

在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile_java_03

where ant 的输出结果:

在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile_eclipse_04

我在 Eclipse 里用 自带的 build,使用的 build.xml 似乎不对。

在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile_ide_05

上图才是正确的 build file,即 Hybris 的安装目录。

在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile_xml_06

在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile_eclipse_07

这些 eclipsebin 肯定是 eclipse 干的事情

Hybris 对于每种 type,有两种自动生成的 jalo 文件。

(1) abstract class,比如 GeneratedMyType.java

这种类型的文件对应的 java class, 在执行 ant clean 时会被删除。

(2) concrete class,比如 MyType.java

ant clean 不会删除。因此修改或者删除一个 type 之后,需要手动删除这种 concrete class.

在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile_java_08


There are 2 generated Jalo files for each type. An abstract class (e.g. GeneratedMyType.java) and and concrete class (MyType.java). The abstract Generated*.java class will be removed with an “ant clean” whereas the concrete class is not. If you remove a type or rename a type, an orphaned concrete class for the old type definition will remain that needs to be manually deleted.


ant 运行项目的默认 target.

在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile_ide_09

ant clean all,运行 clean target,使用参数 all.

​​https://stackoverflow.com/questions/25926524/difference-between-ant-and-ant-clean-all/25926645​​

在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile_xml_10

ant clean 只需要1分钟

在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile_ide_11

在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile_ide_12

ant clean all 花费时间:23分钟

在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile_java_13

下图这个任务,执行了1小时52分钟。

在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile_xml_14

更多Jerry的原创文章,尽在:“汪子熙”:

在用 Eclipse 搭建 SAP Commerce Cloud 调试环境时,错误和正确的 buildfile_java_15



举报

相关推荐

0 条评论