如何运行 Lucene in Action 测试?

发布于 2024-11-18 14:02:54 字数 526 浏览 2 评论 0原文

我正在尝试运行 Lucence in Actions 测试自述文件应该只使用 ant test 运行,但事实并非如此。 当我尝试时,我得到:

check-environment:

BUILD FAILED
/Users/simpatico/Downloads/LuceneInAction/build.xml:53: JUnit not available.  Add junit.jar to ANT_HOME/lib

但我确实有 junit.jar (我符号链接 ant-junit.jar 甚至尝试复制粘贴它):

ls $ANT_HOME/lib/junit.jar
/opt/local/share/java/apache-ant/lib/junit.jar

我怎样才能让它工作?

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/junit.jar

How can I get it to work?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

漆黑的白昼 2024-11-25 14:02:54

ant-junit.jar 只是定义了 junit 的 Ant 任务。你需要 $ANT_HOME/lib 中真正的 junit.jar。您需要从 junit.org 获取 junit.jar。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文