本文介绍了IBM Worklight 6.0 - 是否可能为所有环境都有一个通用的config.xml?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse Juno上使用Worklight 6.0。

Using Worklight 6.0 on Eclipse Juno.

问题是当我为所有环境构建Worklight项目时,会相应生成config.xml。现在,我必须每次为Android& iPhone / iPad我必须手动添加所有的插件列表到它。

Problem is when I build Worklight project for all environments, config.xml is generated accordingly. Now, I have to make changes every time for Android & iPhone/iPad I have to manually add all the plugins list into it.

有什么方法,我可以在config.xml中添加一次,时间?

Is there any way that I can add it once in config.xml and have it used everywhere every time?

推荐答案

Android和iOS的 config.xml 不同的结构和内容,所以答案是:不。你不能有两个环境的1 config.xml

The config.xml files for Android and iOS contain different structure and contents, so the answer is: No. You cannot have 1 config.xml for both environments.

是的,您需要使用正确的插件结构编辑每个文件。

And yes, you'll need to edit each of the files with the correct plug-in structure.



接下来,我不明白


Next, I do not understand what do you mean by "every time"...

文件位置是:


  1. iOS: native\config.xml

  2. Android: native\res\ xml \config.xml

  1. iOS: native\config.xml
  2. Android: native\res\xml\config.xml

如果您重命名或删除,您只需编辑这些文件

You will only need to edit these files if you either rename or delete your plug-in, or delete the native folder as a whole.

如果需要,您可以执行以下操作:

If you want, you can do the following:


  1. 对于iOS:将config.xml复制到 iphone\\\
    ativeResources
    文件夹

  2. Android:将config.xml复制到 android\\\
    ativeResources\res\xml
    文件夹(如果该文件夹不存在,请创建它)

  1. For iOS: copy config.xml to the iphone\nativeResources folder
  2. For Android: copy config.xml to the android\nativeResources\res\xml folder (if the folder doesn't exist, create it)

这样,如果您删除了本机文件夹,那么当您重新构建Worklight应用程序时,此文件将被复制到它。

This way, if you ever delete the native folder, this file will be copied to it once you re-build the Worklight application.

如果您需要删除或重命名插件,您仍然需要编辑它(在 nativeResources 文件夹中) 。

You will still need to edit it (in the nativeResources folder(s)) if you ever need to remove or rename a plug-in.

这篇关于IBM Worklight 6.0 - 是否可能为所有环境都有一个通用的config.xml?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 00:52