由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 请教:Junit fails as an Ant task
相关主题
Ant and Netbeans helpant junit and log4j can't work together
speaking of crappy code[转载] JUnit 的简单问题
[转载] 有用Eclipse的嘛?新手上路,请多指教
大家写java class的时候是完全封装的么?Java GUI Testing
新手问一个:如何找.jar文件里都有什么class?why people use Junit?
Re: Desperately need help on DB2 connection through jdbc in jsp pageA question on easyMock2
help: cannot generate index.html using javadoc命令行编译java程序
怎样才能使一个算法用于不同的数据结构?请教高手如何用JUnit模拟真实的Servlet容器 (e.g. Jboss里的tomcat), 具体需求请进
相关话题的讨论汇总
话题: junit话题: ant话题: task话题: problem话题: unittests
进入Java版参与讨论
1 (共1页)
r*****s
发帖数: 985
1
I got the most typical junit problem in ant again. I forgot how I solved
the problem last time. I guess most of people using Junit encountered
this problem before.
Any idea about it? Thanks!
[snip]
unitTests:
BUILD FAILED
...\xxx\build.xml:485: Could not create task or type of type: junit.
Ant could not find the task or a class this task relies upon.
1 You have misspelt 'junit'.
Fix: check your spelling.
no.
2 The task needs an external JAR file to execute
and this is not found at the righ
r*****s
发帖数: 985
2
the script for the target. I don't see any problem here.
Remember Ant complains about "junit" ...

haltonfailure="yes"
fork="yes"
dir="${basedir}">




: I got the most typical junit problem in ant again. I forgot how I solved
: the problem last time. I guess most of people using Junit encountered
: this problem before.
: Any idea about it? Thanks!
: [snip]
: unitTests:
: BUILD FAILED
: ...\xxx\build.xml:485: Could not create task or type of type: junit.
: Ant could not find the task or a class this task relies upon.
: 1 You have misspelt 'junit'.

r*****s
发帖数: 985
3
搞定。就是要把dependency copy to $ANT_HOME/lib,
or put them (here is junit.jar) in the classpath

【在 r*****s 的大作中提到】
: the script for the target. I don't see any problem here.
: Remember Ant complains about "junit" ...
:
: : haltonfailure="yes"
: fork="yes"
: dir="${basedir}">
:
:
:

1 (共1页)
进入Java版参与讨论
相关主题
请教高手如何用JUnit模拟真实的Servlet容器 (e.g. Jboss里的tomcat), 具体需求请进新手问一个:如何找.jar文件里都有什么class?
junit questionRe: Desperately need help on DB2 connection through jdbc in jsp page
有几个公司是完全按照这个运作的呢help: cannot generate index.html using javadoc
junit test问题怎样才能使一个算法用于不同的数据结构?
Ant and Netbeans helpant junit and log4j can't work together
speaking of crappy code[转载] JUnit 的简单问题
[转载] 有用Eclipse的嘛?新手上路,请多指教
大家写java class的时候是完全封装的么?Java GUI Testing
相关话题的讨论汇总
话题: junit话题: ant话题: task话题: problem话题: unittests