首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在windows中使用ant构建IBM MobileFirst适配器。

在windows中使用ant构建IBM MobileFirst适配器。
EN

Stack Overflow用户
提问于 2015-03-11 03:01:53
回答 1查看 121关注 0票数 0

我正在使用Windows6.3,并在Windows7中编写了以下ant Build.xml,我安装了最新的MobileFirst。

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="adapter">
  <taskdef resource="com/worklight/ant/defaults.properties">
    <classpath>
      <pathelement location="C:\Tools\IBM\MobileFirst-CLI\mobilefirst-cli\node_modules\generator-worklight-server\lib\worklight-ant-deployer.jar"/>
    </classpath>
  </taskdef>
  <target name="adapter">
    <adapter-builder
        folder="C:\pruebas\adapters\adapter"
        destinationfolder="C:\pruebas\bin"/>
    </target>
</project>

当我使用下面的命令"ant adapter“执行任务时,它给出了以下错误:

代码语言:javascript
复制
C:\pruebas\ANT>ant adapter
Buildfile: C:\pruebas\ANT\build.xml

adapter:

BUILD FAILED
C:\pruebas\ANT\build.xml:11: Problem: failed to create task or type adapter-buil
der
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Total time: 0 seconds

有什么帮助吗?

EN

回答 1

Stack Overflow用户

发布于 2015-03-11 03:11:48

您说您正在尝试使用Ant构建适配器,但您却指向适配器部署程序.jar文件……

请参阅以下用户文档主题:https://www-01.ibm.com/support/knowledgecenter/SSHS8R_6.3.0/com.ibm.worklight.deploy.doc/devref/r_ant_tasks_buld_deploy_apps.html

您应该尝试指向以下任一项:

  • C:\Tools\IBM\MobileFirst-CLI\public\worklight-ant-builder.jar,或to
  • C:\Tools\IBM\MobileFirst-CLI\mobilefirst-cli\node_modules\generator-worklight-server\lib\worklight-ant-builder.jar
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28971995

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档