Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-362: add JUnit to Solr libraries

Erik Hatcherb8bdf5add6a7
diff --git a/README.txt b/README.txt
index 86a054ceba0..12cceef0fbe 100644
--- a/README.txt
+++ b/README.txt
@@ -85,11 +85,6 @@ Instructions for Building Apache Solr from Source
4. Navigate to that folder and issue an "ant" command to see the available options
for building, testing, and packaging Solr.
- NOTE:
- Solr uses JUnit (http://www.junit.org/index.htm) for unit testing. You will need
- the JUnit library in your Ant classpath in order to compile and run the unit tests.
- See http://ant.apache.org/manual/OptionalTasks/junit.html for instructions.
-
NOTE:
To see Solr in action, you may want to use the "ant example" command to build
and package Solr into the example/webapps directory. See also example/README.txt.
diff --git a/build.xml b/build.xml
index 2c813cc76b8..3afdef37e2d 100644
--- a/build.xml
+++ b/build.xml
@@ -93,8 +93,6 @@
<property name="junit.output.dir" location="${dest}/test-results"/>
<property name="junit.reports" location="${dest}/test-results/reports"/>
<property name="junit.includes" value="**/Test*.java,**/*Test.java"/>
- <available property="junitPresent"
- classname="junit.framework.TestCase" />
<!-- Macro for compilation -->
<macrodef name="solr-javac">
@@ -385,6 +383,8 @@
<!-- Check that JUnit is present. -->
<target name="checkJunitPresence">
+ <available property="junitPresent"
+ classname="junit.framework.TestCase" classpathref="compile.classpath"/>
<!-- no description so it doesn't show up in -projecthelp -->
<fail unless="junitPresent">
##################################################################
diff --git a/lib/junit-4.3.jar b/lib/junit-4.3.jar
new file mode 100644
index 00000000000..a5a35859b7c
--- /dev/null
+++ b/lib/junit-4.3.jar
@@ -0,0 +1,2 @@
+AnyObjectId[6ecaeb83a81f541647188ca6da7ec6f41d385e1f] was removed in git history.
+Apache SVN contains full history.
\ No newline at end of file