ant的问题

cxh_dream 2010-07-12 10:10:49
本人初学ant,哪位好心的大侠能指点一下的,下面是出错问题,org.apache.ivy的包也已经加入ant的运行环境中了,谢谢


Buildfile: E:\workspace2\PMI\build.xml

BUILD FAILED
E:\workspace2\PMI\build.xml:77: Problem: failed to create task or type antlib:org.apache.ivy.ant:settings
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.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
-E:\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib
-C:\Documents and Settings\Administrator\.ant\lib
-a directory added on the command line with the -lib argument
...全文
517 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
myairland 2010-07-13
  • 打赏
  • 举报
回复
很多原因,你不方便贴代码的话在命令行加上ant -debug ...参数,出来的堆栈信息应该会帮你解决问题
cxh_dream 2010-07-13
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 ouyangxiaokang6 的回复:]
大哥把你的脚本贴上来呀,这样谁知道你那里写错了。
The name is undefined.仔细检查一下你各个节点的名字。
[/Quote]

我宿舍有三个人一起做这个项目,一个人能运行,两个人运行不了啊,都是一样的配置······,代码也很长····
shine333 2010-07-13
  • 打赏
  • 举报
回复
build.xml:77行,有一个应用字段,找不到定义
ouyangxiaokang6 2010-07-13
  • 打赏
  • 举报
回复
大哥把你的脚本贴上来呀,这样谁知道你那里写错了。
The name is undefined.仔细检查一下你各个节点的名字。
焙焙龙 2010-07-12
  • 打赏
  • 举报
回复
你的脚本有问题,请检查下

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧