Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在Worklight 6.2上使用ant任务发布适配器_Ant_Ibm Mobilefirst - Fatal编程技术网

无法在Worklight 6.2上使用ant任务发布适配器

无法在Worklight 6.2上使用ant任务发布适配器,ant,ibm-mobilefirst,Ant,Ibm Mobilefirst,我的部署在Eclipse中运行得很好,但每当我尝试运行ant脚本时。我收到以下错误消息 [警告]SRVE0190E:未找到文件:/console/api/adapters/upload 我已经包括了下面描述的罐子。我使用的ant脚本是: <project basedir="." default="deploy"> <property name="worklight-ant-deployer" location="worklight-ant-deployer.jar" />

我的部署在Eclipse中运行得很好,但每当我尝试运行ant脚本时。我收到以下错误消息

[警告]SRVE0190E:未找到文件:/console/api/adapters/upload

我已经包括了下面描述的罐子。我使用的ant脚本是:

<project basedir="." default="deploy">
<property name="worklight-ant-deployer" location="worklight-ant-deployer.jar" />
<target name="init">
<taskdef resource="com/worklight/ant/defaults.properties">
<classpath>
<pathelement location="./lib/worklight-ant-deployer.jar"/>
</classpath>
</taskdef>
</target>

<target name="deploy" depends="init">

<adapter-deployer deployable="/pathTo/MyAdapter.adapter" worklightServerHost="http://localhost:10080/MyApp"/>
</target>
</project>

我认为您的ant任务不是Worklight 6.2的最新版本。查看以下用户文档主题:

该文档详细说明了脚本中需要进行的更改,以便通过ant任务重新开始部署


有关在Worklight 6.2中使用Ant的更多信息,请参见:。

看起来Worklight 6.1中的Ant库与Worklight 6.2不兼容