以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XML工具及XML开发环境 』  (http://bbs.xml.org.cn/list.asp?boardid=7)
----  [求助]在eclipse中使用ant的问题  (http://bbs.xml.org.cn/dispbbs.asp?boardid=7&rootid=&id=39558)


--  作者:nacassoce
--  发布时间:10/30/2006 10:09:00 PM

--  [求助]在eclipse中使用ant的问题
eclipse 中支持ant编译器;我使用的3.2版本;自带ant1.6.5插件
1.6.5中有<subant>的task(见ant 1.6.5 Docs);
但是我在编译build.xml时碰到错误:

Element type "subant" must be declared

源文件:
。。。。。。。。。。。
       <subant inheritall="false">
            <filelist dir="." files="framework/build.xml"/>
        </subant>
。。。。。。。。。。。

使用JBuilderX 也碰到同样的问题
      "build.xml":  Could not create task or type of type: subant. at line 99

在ant使用时必须有ant task define才能正确运行<subant>task;
但是我的eclipse 自带的任务定义就是1.6.5版本

使用cmd命令行编译就会通过;在eclipse 和 jbuilderx中都不行
究竟是什么问题?

我的环境:
eclipse 3.2
JDK 1.4.2
ant 1.6.5

请高手指点
nacassoce@163.com


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
31.250ms