Author: jfrederic.clere(a)jboss.com
Date: 2008-09-16 08:04:22 -0400 (Tue, 16 Sep 2008)
New Revision: 1837
Modified:
trunk/mod_cluster/test/java/build.xml
trunk/mod_cluster/test/java/org/jboss/mod_cluster/Maintest.java
Log:
Use -Dcluster=true to activate the test with mod_cluster listener.
Modified: trunk/mod_cluster/test/java/build.xml
===================================================================
--- trunk/mod_cluster/test/java/build.xml 2008-09-16 10:15:53 UTC (rev 1836)
+++ trunk/mod_cluster/test/java/build.xml 2008-09-16 12:04:22 UTC (rev 1837)
@@ -94,7 +94,7 @@
<copy file="conf/web.xml" todir="${test.classes}/conf"/>
<java dir="${test.classes}" classname="${test.runner}"
fork="yes" failonerror="${test.failonerror}">
<arg value="org.jboss.mod_cluster.Maintest"/>
- <jvmarg value="-Dtest=${test}"/>
+ <jvmarg line="-Dcluster=${cluster} -Dtest=${test}"/>
<classpath refid="tomcat.test.classpath"/>
</java>
Modified: trunk/mod_cluster/test/java/org/jboss/mod_cluster/Maintest.java
===================================================================
--- trunk/mod_cluster/test/java/org/jboss/mod_cluster/Maintest.java 2008-09-16 10:15:53
UTC (rev 1836)
+++ trunk/mod_cluster/test/java/org/jboss/mod_cluster/Maintest.java 2008-09-16 12:04:22
UTC (rev 1837)
@@ -51,10 +51,13 @@
TestSuite suite = new TestSuite();
server = (StandardServer) ServerFactory.getServer();
- // Read the -DJbossWEB=true/false.
- String jbossweb = System.getProperty("JbossWEB");
- if (jbossweb != null)
- isJBossWEB = false;
+ // Read the -Dcluster=true/false.
+ String jbossweb = System.getProperty("cluster");
+ if (jbossweb != null && jbossweb.equalsIgnoreCase("true")) {
+ System.out.println("Running tests with mod_cluster listener");
+ isJBossWEB = false;
+ } else
+ System.out.println("Running tests with jbossweb listener");
// Read the -Dtest="value".
String test = System.getProperty("test");
Show replies by date