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

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

错误的 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分钟。

相关文章
|
1月前
|
Web App开发 数据采集 前端开发
纯技术讨论:如何让 SAP UI5 应用无法被别人在浏览器里调试 - 这种做法不推荐试读版
纯技术讨论:如何让 SAP UI5 应用无法被别人在浏览器里调试 - 这种做法不推荐试读版
15 0
|
21天前
|
安全 UED 开发者
SAP Commerce Cloud 配置项 refreshWithLock=false 的作用介绍
SAP Commerce Cloud 配置项 refreshWithLock=false 的作用介绍
20 0
|
21天前
|
Java BI API
SAP Cloud for Customer 里如何通过 ABSL 二次开发方式消费 SAP S/4HANA 系统的 API
SAP Cloud for Customer 里如何通过 ABSL 二次开发方式消费 SAP S/4HANA 系统的 API
15 0
|
25天前
什么是 SAP ABAP 里的 Subscreen
什么是 SAP ABAP 里的 Subscreen
16 1
什么是 SAP ABAP 里的 Subscreen
|
1月前
|
安全 开发者
如何在 SAP ERP 系统调试 Product Initial Download
如何在 SAP ERP 系统调试 Product Initial Download
25 0
|
1月前
|
中间件
如何在 SAP CRM 系统调试 Product Initial Download
如何在 SAP CRM 系统调试 Product Initial Download
16 0
|
2月前
|
机器学习/深度学习 人工智能 监控
SAP Sales Cloud,Service Cloud 和 SAP BTP 平台上的 AI 集成场景
SAP Sales Cloud,Service Cloud 和 SAP BTP 平台上的 AI 集成场景
67 0
|
4月前
|
监控 Java 开发工具
基于Eclipse+SDK+ADT+DDMS的安卓开发环境完整搭建过程
基于Eclipse+SDK+ADT+DDMS的安卓开发环境完整搭建过程
45 0
基于Eclipse+SDK+ADT+DDMS的安卓开发环境完整搭建过程
|
5月前
|
开发者
SAP UI5 控件双向数据绑定后显示数据出问题,可以调试这个方法
SAP UI5 控件双向数据绑定后显示数据出问题,可以调试这个方法
28 0
|
5月前
|
数据安全/隐私保护
SAP Commerce Cloud 的 DataIsolation flag
SAP Commerce Cloud 的 DataIsolation flag
25 0