IBM Worklight - How do I patch Cordova?

不羁的心 提交于 2019-12-13 19:43:19

问题


While adding support for the Windows 8 environment, I've hit a Cordova bug. The folders are being reported as files when I get the directory listing: https://issues.apache.org/jira/browse/CB-5774

I want to apply the patch in my project as I understand you cannot upgrade the Cordova version in a Worklight project.

I am using Worklight 6.1.0.


回答1:


I figured out a way to patch (JavaScript patch).. I am sure this is not a permnant solution - but a adhoc one till the patched Cordova is available with a new version of Worklight.

In my case the bug was in FileProxy.js. I created a directory structure to mirror the location of the problem file and added the patched file there.(www\worklight\plugins\org.apache.cordova.file\src\windows8\FileProxy.js).

At build time the cordova files are copied first and then www contents are copied after... so my patched file overwrote the one with the bug.

I'm sure this is not a supported way by Worklight - but I am no longer blocked.




回答2:


It is currently not possible to replace or patch the Cordova version that is being used in Worklight. In Worklight v6.1.0, Cordova v3.1 is used.

If you are an IBM customer or business partner you can open a PMR to see if an iFix can be produced that will contain a patched version of Cordova 3.1.



来源:https://stackoverflow.com/questions/21907440/ibm-worklight-how-do-i-patch-cordova

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!