How do I run Lucene in Action tests?
I'm trying to run the tests of Lucence in Actions which according to the README should just run with ant test
, but (oc) this wasn't the case.
When I try I get:
check-environment:
BUILD FAILED
/Users/simpatico/Downloads/LuceneInAction/build.xml:53: JUnit not available. Add junit.jar to ANT_HOME/lib
But I do have junit.jar (I symlinked ant-junit.jar and even tried copy-pasting it):
ls $ANT_HOME/lib/junit.jar
/opt/local/share/java/apache-ant/lib/j开发者_运维技巧unit.jar
How can I get it to work?
ant-junit.jar just defines the Ant task for junit. you need the real junit.jar in $ANT_HOME/lib. You need to get junit.jar from junit.org.
精彩评论