Worklight v6 - 构建环境和项目构建器

时间:2013-07-16 13:25:22

标签: eclipse ant ibm-mobilefirst worklight-studio

从Worklight Studio 5.0.6迁移到6.0

我们观察到一个小但不可取的行为差异,或者在我们找不到的某个地方需要进行混淆变换。

在v5.0.6中,当选择环境并请求构建环境和部署时,首先执行项目的构建器。在v6.0中似乎并非如此,除非在某处有选项...

用例是我们通过作为项目构建器安装的ant任务执行一些预处理。在v6.0中,我们现在需要记住运行Build Project然后构建环境。

是否有控制此行为的选项?

2 个答案:

答案 0 :(得分:2)

这是在worklight 5.0.x - 6.x中运行ant任务的方法:

  1. 创建Ant文件(build.xml): enter image description here

  2. 导航到project-> properties-> Builders-> new-> Ant Builder。按ok

  3. " Main" tab设置构建器的名称并选择Ant文件(build.xml): enter image description here

  4. "目标"选项卡选择何时运行Ant文件(在Auto Build中的此示例中): enter image description here

  5. 按OK

  6. 按OK
  7. run" Build All and Deploy":
  8. 成功:
    enter image description here

答案 1 :(得分:1)

这是Worklight 6.0.0.x和6.1.0.x中的一个开放缺陷。

目前没有解决方法。

相关问题