我正在使用Windows6.3,并在Windows7中编写了以下ant Build.xml,我安装了最新的MobileFirst。
<?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“执行任务时,它给出了以下错误:
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有什么帮助吗?
发布于 2015-03-11 03:11:48
您说您正在尝试使用Ant构建适配器,但您却指向适配器部署程序.jar文件……
您应该尝试指向以下任一项:
https://stackoverflow.com/questions/28971995
复制相似问题