在mobilefirst ant build中控制wlServerContext

时间:2015-08-14 02:36:53

标签: android ios ant ibm-mobilefirst

我想使用ant构建MobileFirst工件,但我无法在wlServerContext文件(Android)或{{1}中使wlclient.properties正确显示文件(iOS)。
在这两种情况下,它都显示为worklight.plist,我想要/ - 这是/MyProject/设法生成的内容。

以下是我正在使用的mfp build文件:

ant

我还需要做什么?

FWIW:

<?xml version="1.0" encoding="UTF-8"?>
<project default="mfp-ant-build" basedir="/Users/sean/Development/MyProject">
  <taskdef resource="com/worklight/ant/defaults.properties">
    <classpath>
      <pathelement location="/Applications/IBM/MobileFirst-CLI/public/worklight-ant-builder.jar" />
    </classpath>
  </taskdef>
  <target name="mfp-ant-build">
    <war-builder projectfolder="${basedir}" classesFolder="bin/classes" destinationfolder="../build/dist/servers/mfp-ant-build-local/tmp" warfile="../build/dist/servers/mfp-ant-build-local/MyProject.war" />
    <app-builder nativeProjectPrefix="MyProject" applicationFolder="apps/MyApp" worklightserverhost="https://myserver/" outputFolder="../build/dist/servers/mfp-ant-build-local" />
  </target>
</project>

1 个答案:

答案 0 :(得分:1)

我相信上下文根(你尝试中缺失的部分)应该是| guest_id | updated_by | update_dt | |------------------|------------|--------------------------| | PEK150700019-001 | sherwin | August, 11 2015 13:59:09 | 属性的一部分。

基于Ant builder task documentation(查看示例的最底部),这是一个示例Ant任务:

worklightserverhost