美文网首页
在用 Eclipse 搭建 SAP Commerce Cloud

在用 Eclipse 搭建 SAP Commerce Cloud

作者: 华山令狐冲 | 来源:发表于2021-12-29 10:44 被阅读0次

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

为什么是这个目录?


where ant 的输出结果:

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

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

这些 eclipsebin 肯定是 eclipse 干的事情

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

(1) abstract class,比如 GeneratedMyType.java

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

(2) concrete class,比如 MyType.java

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

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.

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

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

ant clean 只需要1分钟

ant clean all 花费时间:23分钟

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


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


相关文章

网友评论

      本文标题:在用 Eclipse 搭建 SAP Commerce Cloud

      本文链接:https://www.haomeiwen.com/subject/zutaxrtx.html