为什么你们的Note.js 里面没有sap.ui.core.Control.extend()这样的代码,但是runtime有自动生成有

简介: Sent: Wednesday, March 18, 2015 6:44 PM

From: Wang, Jerry


Sent: Wednesday, March 18, 2015 6:44 PM

Subject: RE: 另一种方法做本地reuse library的开发

UI5 team的人写了一些Maven plugin,Maven build时,首先通过一个xslt在target folder生成一个note.api.js:

image.png


然后把note.js和note.api.js做一个merge,最后你runtime 看到load的note.js是maven plugin merge之后的内容:

image.png

你们可以用另外一种办法来做reuse library的research,这种方法的好处就是你们可以随便改reuse library project,而不用担心会影响标准的reuse project或者opportunity project。


如果你们需要在本地修改reuse library,但是不想直接修改我们productive的library,可以把它copy成一个新的,比如:

image.png

指定好这个project的pom文件,给他assign一个新的artifact id,比如jerrynote。


然后修改opp project的pom.xml:

cus.crm.lib.reuse

image.png

改成我们自己的project:

image.pngimage.png

重启应用,当你发现你本地local project的js被引用,就说明成功了。

image.png

相关文章
|
JavaScript 开发者
Web Components系列(三) —— 创建 Custom Elements
根据前面的介绍,我们知道根据是否继承基本 HTML 元素,可以将自定义元素分为两类“
172 0
Web Components系列(三) —— 创建 Custom Elements
SAP Spartacus storefrontapp index.html 的 design time 和 runtime
SAP Spartacus storefrontapp index.html 的 design time 和 runtime
120 0
SAP Spartacus storefrontapp index.html 的 design time 和 runtime
how is SAP UI5 configuration.js loaded in the runtime
Created by Wang, Jerry, last modified on Mar 26, 2015
how is SAP UI5 configuration.js loaded in the runtime
when is this.oModel in sap-ui-core.js initialized for navigation working
Created by Wang, Jerry, last modified on May 21, 2015
89 0
when is this.oModel in sap-ui-core.js initialized for navigation working
who initialize the request for abap.js in SAP UI5
Created by Wang, Jerry, last modified on Mar 26, 2015
who initialize the request for abap.js in SAP UI5
下一篇
无影云桌面