- 在用 Eclipse 搭建 SAP Commerce Cloud
- SAP Commerce Cloud 架构概述
- Hybris Commerce 在eclipse中开发和DEBU
- 如何给 SAP Commerce Cloud Site 设置默认
- SAP Commerce Accelerator和SAP Spa
- 关于 SAP Commerce Cloud 的 Sample S
- SAP Commerce Cloud Accelerator t
- 如何通过 Excel import 的方式导入测试数据到 SAP
- SAP Commerce Cloud 构建环境类型介绍
- SAP Commerce Cloud Github 仓库管理规范
错误的 buildfile:我的用户目录下:
![](https://img.haomeiwen.com/i2085791/c004c35ddc814ec6.png)
为什么是这个目录?
![](https://img.haomeiwen.com/i2085791/4be7354c13569676.png)
![](https://img.haomeiwen.com/i2085791/f4ce366d00d16138.png)
where ant 的输出结果:
![](https://img.haomeiwen.com/i2085791/ebfde8f185e98ad2.png)
我在 Eclipse 里用 自带的 build,使用的 build.xml 似乎不对。
![](https://img.haomeiwen.com/i2085791/f98069fe452fdfb9.png)
上图才是正确的 build file,即 Hybris 的安装目录。
![](https://img.haomeiwen.com/i2085791/4a595a2ab0a67697.png)
![](https://img.haomeiwen.com/i2085791/316a8e0872c0f1b5.png)
这些 eclipsebin 肯定是 eclipse 干的事情
Hybris 对于每种 type,有两种自动生成的 jalo 文件。
(1) abstract class,比如 GeneratedMyType.java
这种类型的文件对应的 java class, 在执行 ant clean 时会被删除。
(2) concrete class,比如 MyType.java
ant clean 不会删除。因此修改或者删除一个 type 之后,需要手动删除这种 concrete class.
![](https://img.haomeiwen.com/i2085791/568f8959cc21d8e3.png)
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.
![](https://img.haomeiwen.com/i2085791/9c37bcae29d4eabc.png)
ant clean all,运行 clean target,使用参数 all.
https://stackoverflow.com/questions/25926524/difference-between-ant-and-ant-clean-all/25926645
![](https://img.haomeiwen.com/i2085791/8219a29896d0c517.png)
ant clean 只需要1分钟
![](https://img.haomeiwen.com/i2085791/5da44913ae3f7f22.png)
![](https://img.haomeiwen.com/i2085791/b0542b435632fec5.png)
ant clean all 花费时间:23分钟
![](https://img.haomeiwen.com/i2085791/8a0183de89c841b9.png)
下图这个任务,执行了1小时52分钟。
![](https://img.haomeiwen.com/i2085791/d7bd455b711a9a88.png)
更多Jerry的原创文章,尽在:"汪子熙":
![](https://img.haomeiwen.com/i2085791/97c4752c0e619c44.png)
网友评论