Author: markt
Date: Thu Sep 23 00:19:20 2010
New Revision: 1000283

URL: http://svn.apache.org/viewvc?rev=1000283&view=rev
Log:
Parameterize the APR location for the unit tests

Modified:
    tomcat/trunk/build.xml

Modified: tomcat/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/build.xml?rev=1000283&r1=1000282&r2=1000283&view=diff
==============================================================================
--- tomcat/trunk/build.xml (original)
+++ tomcat/trunk/build.xml Thu Sep 23 00:19:20 2010
@@ -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"/>
@@ -970,7 +971,7 @@
   
   <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"
@@ -983,7 +984,7 @@
     <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" />
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to