Parameterize the APR location for the unit tests
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 23 Sep 2010 00:19:20 +0000 (00:19 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 23 Sep 2010 00:19:20 +0000 (00:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1000283 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index ab002aa..427d434 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -74,6 +74,7 @@
   <property name="tomcat.src.jars"       value="${tomcat.output}/src-jars"/>
   <property name="test.classes"          value="${tomcat.output}/testclasses"/>
   <property name="test.temp"             value="${tomcat.output}/test-tmp"/>
+  <property name="test.apr.loc"          value="${tomcat.build}/bin/native"/>
 
   <!-- Servlet 3.0 spec requires 1.6+ -->
   <property name="compile.source" value="1.6"/>
   
   <target name="test-apr-exists" description="Checks for APR lib"
           if="${execute.test.apr}">
-    <available file="${tomcat.build}/bin/native" property="apr.exists" />
+    <available file="${test.apr.loc}" property="apr.exists" />
   </target>
 
   <macrodef name="runtests"
     <sequential>
       <junit printsummary="yes" fork="yes" dir="." showoutput="yes">
 
-        <jvmarg value="-Djava.library.path=${tomcat.build}/bin/native"/>
+        <jvmarg value="-Djava.library.path=${test.apr.loc}"/>
 
         <classpath refid="tomcat.test.classpath" />