You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by Harry Mangalam <ha...@uci.edu> on 2007/09/18 22:02:14 UTC
'ant test' fails on revision 577032
The worst kind of report - from both a Java & SOLR newbie (I know -
what am I doing here?)
In trying to make Eric Pugh's Rich Document parser work (targetted to
v 1.3):
https://issues.apache.org/jira/browse/SOLR-284
I checked out the current 1.3 tree and in the process of verifying
that it was OK, tried most of the ant targets.
ant clean, compile, example, package, and dist worked fine, but 'ant
test' failed with:
===
compileTests:
junit:
BUILD FAILED
/home/hjm/code/solr/solr_1.3/build.xml:426: Could not create task or
type of type: junit.
Ant could not find the task or a class this task relies upon.
This is common and has a number of causes; the usual
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file:
<etc>
===
I have junit version 3.8.1 installed. Eric mentioned that there was a
recent build problem - is this an example of that problem or is this
a case of monumental Java ignorance on my part? (I can waste cycles
in Perl, Python, bash, C, etc, just not Java).
--
Harry Mangalam - Research Computing, NACS, E2148, Engineering Gateway,
UC Irvine 92697 949 824 0084(o), 949 285 4487(c)
harry.mangalam@uci.edu
Re: 'ant test' fails on revision 577032
Posted by Chris Hostetter <ho...@fucit.org>.
: /home/hjm/code/solr/solr_1.3/build.xml:426: Could not create task or
: type of type: junit.
: I have junit version 3.8.1 installed. Eric mentioned that there was a
JUnit by itself isn't enough .. you also need the junit ant task which
typically comes in a jar called "ant-junit.jar" ...
http://ant.apache.org/manual/OptionalTasks/junit.html
Note: Junit 3.8.1 is pretty old ... it might work with Solr's test but i'm
not positive .. try it, if you get test compilation errors you may want
to try JUnit4
: recent build problem - is this an example of that problem or is this
: a case of monumental Java ignorance on my part? (I can waste cycles
The recent builds have had some problems with a SolrJ unit test that uses
an embedded jetty instance to test HTTP stuff. definitely not the same
thing.
-Hoss