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}"> : : :
|