Deployment 用于部署的Worklight ant任务
我正在用这个 它告诉我这样做一个蚂蚁目标Deployment 用于部署的Worklight ant任务,deployment,ant,ibm-mobilefirst,Deployment,Ant,Ibm Mobilefirst,我正在用这个 它告诉我这样做一个蚂蚁目标 <target name="Deploy App"> <app-deployer deployable="${build.apps.dir}/app.wlapp" worklightServerHost="http://${customConfig.worklightServer.host}:${customConfig.worklightServer.port}/${customConfig.runtime}
<target name="Deploy App">
<app-deployer deployable="${build.apps.dir}/app.wlapp"
worklightServerHost="http://${customConfig.worklightServer.host}:${customConfig.worklightServer.port}/${customConfig.runtime}"
userName="admin" password="admin" />
</target>
然而,当我用wladm创建目标时,它告诉我
Problem: failed to create task or type wladm
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
这不完全是对您的问题的回答,但若您不需要Ant,可以在命令行中使用wladm。见
wladm命令位于[WorklightInstallDir]/shortcuts中。导致上述错误消息“无法创建任务或键入wladm”的最常见原因有:
- 在当前Ant脚本中,
此时尚未执行。您可以将它放在不同的目标中,而不是在当前目标之前执行。修复方法是将其列在公共初始化目标或任何目标之外的
目录下
引用了一个不存在的文件或worklight ant deployer.jar的旧版本
加载
,但在6.2中它需要加载resource=“com/worklight/ant/defaults.properties”
resource=“com/worklight/ant/deployers/antlib.xml”
[echo] Worklight Ant task version 6.2.0.00.20140613-0730
Problem: failed to create task or type wladm
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.