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

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

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

32.png

为什么是这个目录?

33.png34.png

where ant 的输出结果:

35.png

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

36.png

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

37.png

38.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.

image.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.


image.png

ant 运行项目的默认 target.

image.png

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

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

39.png

ant clean 只需要1分钟

image.png

image.png

ant clean all 花费时间:23分钟

42.png

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

43.png


目录
相关文章
|
C语言 Android开发 Windows
解决windows下eclipse创建project时没有include导致出现“unresolved inclusion: <stdio.h>”错误的方法
解决windows下eclipse创建project时没有include导致出现“unresolved inclusion: <stdio.h>”错误的方法
解决windows下eclipse创建project时没有include导致出现“unresolved inclusion: <stdio.h>”错误的方法
|
Java Maven Android开发
Eclipse使用Maven创建Web时错误:Could not resolve archetype
转载自:http://blog.csdn.net/afgasdg/article/details/12757433
203 0
Eclipse使用Maven创建Web时错误:Could not resolve archetype
|
Java Maven Android开发
eclipse 中 maven的pom.xml文件发生错误:CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven...
eclipse 中 maven的pom.xml文件发生错误:CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven...
516 0
eclipse 中 maven的pom.xml文件发生错误:CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven...
|
Android开发
eclipse中汉字对齐错误
eclipse中汉字对齐错误
63 0
|
应用服务中间件 Apache Android开发
eclipse在导入一个Web项目后,配置好Tomcat发现项目打红叉,而WebContent和其他内容没有错误,但是右键run并没有run on Server
eclipse在导入一个Web项目后,配置好Tomcat发现项目打红叉,而WebContent和其他内容没有错误,但是右键run并没有run on Server。
226 0
eclipse在导入一个Web项目后,配置好Tomcat发现项目打红叉,而WebContent和其他内容没有错误,但是右键run并没有run on Server
|
Java 应用服务中间件 Apache
Java Web入门之开发环境的搭建(包括下载Tomcat和 Eclipse for Java EE)
Java Web入门之开发环境的搭建(包括下载Tomcat和 Eclipse for Java EE)
195 0
Java Web入门之开发环境的搭建(包括下载Tomcat和 Eclipse for Java EE)
|
SQL Java 数据库连接
eclipse搭建Mybatis
eclipse搭建Mybatis
270 0
|
Java Android开发 Spring
spring练习,在Eclipse搭建的Spring开发环境中,使用set注入方式,实现对象的依赖关系,通过ClassPathXmlApplicationContext实体类获取Bean对象
spring练习,在Eclipse搭建的Spring开发环境中,使用set注入方式,实现对象的依赖关系,通过ClassPathXmlApplicationContext实体类获取Bean对象
123 0
spring练习,在Eclipse搭建的Spring开发环境中,使用set注入方式,实现对象的依赖关系,通过ClassPathXmlApplicationContext实体类获取Bean对象
|
Java Android开发 数据安全/隐私保护
spring练习,使用Eclipse搭建的Spring开发环境,属性注入通过构造方法方式实现,模拟用户的正常登录。
spring练习,使用Eclipse搭建的Spring开发环境,属性注入通过构造方法方式实现,模拟用户的正常登录。
87 0
spring练习,使用Eclipse搭建的Spring开发环境,属性注入通过构造方法方式实现,模拟用户的正常登录。
|
Java Android开发 Spring
sping练习,在Eclipse搭建的Spring开发环境中,使用工厂方式创建Bean对象,将创建的Bean对象输出到控制台。
sping练习,在Eclipse搭建的Spring开发环境中,使用工厂方式创建Bean对象,将创建的Bean对象输出到控制台。
197 0
sping练习,在Eclipse搭建的Spring开发环境中,使用工厂方式创建Bean对象,将创建的Bean对象输出到控制台。