commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Paquette <mpaqu...@covansys.com>
Subject [httpclient] patch to build.xml for passing jvmargs (httpclient.test properties)
Date Wed, 13 Feb 2002 14:43:07 GMT
Many unit tests assume the test webapp is available at 
http://127.0.0.1:80/httpclienttest.  Some (e.g. those that extends 
TestWebappBase) have the necessary provision to take host, port, context 
from system properties.  However, the build target test-local does not 
pass these to the test runner.  Here is a patch that passes the 3 
properties to the test runner.

*** build.xml    6 Oct 2001 01:07:15 -0000    1.9
--- build.xml    13 Feb 2002 14:38:38 -0000
***************
*** 261,266 ****
--- 261,269 ----
        <java classname="${test.runner}" fork="yes" 
failonerror="${test.failonerror}">
          <jvmarg 
value="-Djava.protocol.handler.pkgs=${java.protocol.handler.pkgs}"/>
          <jvmarg value="-Dhttpclient.log=${httpclient.log}"/>
+         <jvmarg 
value="-Dhttpclient.test.localHost=${httpclient.test.localHost}"/>
+         <jvmarg 
value="-Dhttpclient.test.localPort=${httpclient.test.localPort}" />
+         <jvmarg 
value="-Dhttpclient.test.webappContext=${httpclient.test.webappContext}" />
          <arg value="${test-local.entry}"/>
          <classpath refid="test.classpath"/>
        </java>




--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message