JiveJdon Community Forums
在线215人   首页   主题表   培训咨询   标签   精华   查搜   注册    登陆 RSS
首页 » 论坛 » 开源JdonFramework及其应用案例论坛
???en_US.forumThreadPrev.name??? 上一主题
  Go back to the topic 返回本主题   Go back to the topic listing返回主题列表
???en_US.forumThreadNext.name??? 下一主题
Go 总共有 1 回复 / 1
 发表新帖子   回复该主题贴
woodworm

悄悄话
发表文章: 53
注册时间: 2005年12月08日 16:43
JdonFramwork在ant test时出错,请jdon指教 2006年12月18日 16:52 到本帖网址 加入本帖到收藏夹 发送到手机 回复该主题
标签列表
我在解包jdonFrameWork后,用ant来build时,到test这步出错。
请指点如何解决

Buildfile: D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\build.xml
clean:
[delete] Deleting directory D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\classes
[delete] Deleting directory D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\dist
init:
compile:
[mkdir] Created dir: D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\classes
[javac] Compiling 210 source files to D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\classes
[copy] Copying 7 files to D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\classes
[copy] Copying 8 files to D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\classes\META-INF
[copy] Copying 2 files to D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\classes\META-INF\tlds
pack:
[mkdir] Created dir: D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\dist
[jar] Building jar: D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\dist\jdonFramework.jar
[copy] Copying 6 files to D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\dist
test:

BUILD FAILED
D:\Work\jivejdon\JdonFramework-1.5_03\JdonFramework\build.xml:107: Could not create task or type of type: junit.

Ant could not find the task or a class this task relies upon.

This is common and has a number of causes; the usual
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file:
- You have misspelt 'junit'.
Fix: check your spelling.
- The task needs an external JAR file to execute
and this is not found at the right place in the classpath.
Fix: check the documentation for dependencies.
Fix: declare the task.
- The task is an Ant optional task and the JAR file and/or libraries
implementing the functionality were not found at the time you
yourself built your installation of Ant from the Ant sources.
Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
task and make sure it contains more than merely a META-INF/MANIFEST.MF.
If all it contains is the manifest, then rebuild Ant with the needed
libraries present in ${ant.home}/lib/optional/ , or alternatively,
download a pre-built release version from apache.org
- The build file was written for a later version of Ant
Fix: upgrade to at least the latest release version of Ant
- The task is not an Ant core or optional task
and needs to be declared using <taskdef>.
- You are attempting to use a task defined using
<presetdef> or <macrodef> but have spelt wrong or not
defined it at the point of use

Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath

Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.

Total time: 18 seconds
banq

悄悄话
发表文章: 9528
注册时间: 2002年08月03日 17:08
Re: JdonFramwork在ant test时出错,请jdon指教 2006年12月19日 10:37 到本帖网址 加入本帖到收藏夹 发送到手机 回复该主题
这是Eclipse+ant的通病
在Eclipse的windows preferences 的ANT选项中,选择Runtime,在右侧的Global Entries中增加junit.jar包即可。

这个主题有 1 回复 / 1Go
???en_US.forumThreadPrev.name??? 上一主题
  Go back to the topic 返回本主题   Go back to the topic listing返回主题列表    返回页首返回页首
???en_US.forumThreadNext.name??? 下一主题
热点TAG: AOP cache 缓存 DDD EJB 集群 设计模式 Hibernate IOC JiveJdon OO RBAC Seam Spring Struts
正在读取,请等待...
google yahoo 新浪ViVi 365Key网摘 天极网摘 CSDN网摘 添加到百度搜藏 POCO网摘 博采网摘
查询本论坛内 回复超过的热门帖子
     回复该主题贴
标题
 
粗体 斜体 下划线 插入图片 插入代码 插入url链接 插入附件
内容
  每2分种自动备份发贴内容Ctrl-V粘贴取出,提问题前先查询标签列表

RSS 手机阅读 add to google add to yahoo
解惑之道在J道 ,打造中国最具影响力的的企业软件社区
OpenSource JIVEJDON v3.0 Powered by JdonFramework Code © 2002-08 jdon.com

anti spam