From 5e653ffc9bd02292d21a3e8465ae92cc33b74c50 Mon Sep 17 00:00:00 2001
From: Brian Carrier <carrier@sleuthkit.org>
Date: Wed, 9 Nov 2011 10:25:37 -0500
Subject: [PATCH] dlls are only a build.xml req if you run a test

---
 bindings/java/build.xml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bindings/java/build.xml b/bindings/java/build.xml
index d2ec9bc9c..6e0b91129 100644
--- a/bindings/java/build.xml
+++ b/bindings/java/build.xml
@@ -9,7 +9,6 @@
   <condition property="ewfFound">
     <isset property="env.LIBEWF_HOME"/>
   </condition>
-  <fail unless="ewfFound" message="LIBEWF_HOME must be set as an environment variable."/>
 	
   <!-- set global properties for this build -->
   <property name="src" location="src/org/sleuthkit/datamodel"/>
@@ -74,6 +73,7 @@
   
   <target name="create-standards" depends="compile-test"
         description="create gold standards to run the datamodel tests against" >
+    <fail unless="ewfFound" message="LIBEWF_HOME must be set as an environment variable."/>
     <java classname="org.sleuthkit.datamodel.DiffUtil" classpathref="libraries"	fork="true" failonerror="true">
       <sysproperty key="java.library.path" value="${dlls}"/>
     </java>
@@ -81,6 +81,7 @@
   
   <target name="test" depends="compile-test"
         description="run the tests" >
+    <fail unless="ewfFound" message="LIBEWF_HOME must be set as an environment variable."/>
     <junit fork="on" haltonfailure="yes" dir=".">
 	  <sysproperty key="java.library.path" value="${dlls}"/>
       <classpath refid="libraries" />
-- 
GitLab