本文介绍了IBM Worklight 6.1.0 - 无法使用 ANT 任务部署 Worklight 适配器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将我的 Worklight Studio 从 6.0.0.1 更新到 6.1.0,并且随着更新,我继续更新了我路径上的 worklight-build-tools.jar.值得一提的是,我的团队已经将我们正在进行的项目更新到了 6.1.0.

I've just updated my Worklight Studio from 6.0.0.1 to 6.1.0 and with the update I've gone ahead and updated the worklight-build-tools.jar on my path. It's worth mentioning that my team has already updated the project we're working on to 6.1.0.

在更新之后,我运行了 ANT 任务来构建和部署所有项目工件.
结果,我无法将适配器部署到本地开发服务器.

Following the update, I ran the ANT tasks to build and deploy all project artifacts.
The result, I wasn't able to deploy the adapters to the local development server.

我解压了 worklight-build-tools.jar 并浏览了一段时间,发现适配器部署任务已移至 jar 中的不同位置.我将新的 taskdef 添加到我的 build.xml 并收到以下错误.

I unzipped the worklight-build-tools.jar and poked around for a while and found the adapter-deployer task has been moved to a different location within the jar. I added the new taskdef to my build.xml and got the error below.

有人可以对此有所了解吗?该类似乎根本不存在于 jar 中.

Can someone shed some light on this? The class doesn't seem to exist in the jar at all.

这里是蚂蚁的错误:

Buildfile: /Users/mario/Documents/workspace/workspace-myproject/MyWorklightProject/build.xml

BUILD FAILED
/Users/mario/Documents/workspace/workspace-myproject/MyWorklightProject/build.xml:35: taskdef class com.ibm.worklight.config.ant.appserver.UpdateAppServerTask cannot be found
using the classloader AntClassLoader[/Users/mario/Documents/workspace/workspace-myproject/MyWorklightProject/worklight-build-tools.jar]

推荐答案

可以在worklight-ant-builder.jarworklight-ant-deployer.jar之后找到安装 Worklight Server 6.1,并查看 WL_INSTALL_DIR/WorklightServer/ 文件夹.

You can find worklight-ant-builder.jar and worklight-ant-deployer.jar after installing Worklight Server 6.1, and looking in the WL_INSTALL_DIR/WorklightServer/ folder.

worklight-ant-builder.jar 用于这些任务:

worklight-ant-builder.jar is for these tasks:

worklight-ant-deployer.jar 用于这些任务:

worklight-ant-deployer.jar is for these tasks:

这篇关于IBM Worklight 6.1.0 - 无法使用 ANT 任务部署 Worklight 适配器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 13:14