From 377aa9bca19a45ace878f463f97af4edcb0314a4 Mon Sep 17 00:00:00 2001
From: str4d <str4d@mail.i2p>
Date: Tue, 20 Mar 2012 00:29:14 +0000
Subject: [PATCH] In core build.xml, tell junit to look for the hamcrest
 libraries

hamcrest-core.jar, hamcrest-library.jar and hamcrest-integration.jar should be
present in $ANT_HOME/lib/ (real or symlinked).
---
 core/java/build.xml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/core/java/build.xml b/core/java/build.xml
index 425caa5f86..a4d5957c78 100644
--- a/core/java/build.xml
+++ b/core/java/build.xml
@@ -72,7 +72,7 @@
     <target name="compileTest">
         <mkdir dir="./build" />
         <mkdir dir="./build/obj" />
-        <!-- junit classes are in ant runtime -->
+        <!-- junit and hamcrest classes should be in ant runtime -->
         <javac srcdir="./src:./test" debug="true" source="1.5" target="1.5" deprecation="on"
                includeAntRuntime="true"
                destdir="./build/obj" >
@@ -119,6 +119,9 @@
             <sysproperty key="net.sourceforge.cobertura.datafile" file="./cobertura.ser" />
             <classpath>
                 <pathelement path="${classpath}" />
+                <pathelement location="${ant.home}/lib/hamcrest-core.jar" />
+                <pathelement location="${ant.home}/lib/hamcrest-library.jar" />
+                <pathelement location="${ant.home}/lib/hamcrest-integration.jar" />
                 <pathelement location="./build/obj_cobertura" />
                 <pathelement location="./build/obj" />
                 <pathelement location="../../build/jbigi.jar" />
-- 
GitLab