Redian新闻
>
请教:Junit fails as an Ant task
avatar
请教:Junit fails as an Ant task# Java - 爪哇娇娃
r*s
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
avatar
r*s
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'.

avatar
r*s
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}">
:
:
:

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。