[jboss-cvs] JBoss Messaging SVN: r4004 - in branches/Branch_Stable/tests: src/org/jboss/test/messaging/tools and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Apr 3 23:07:08 EDT 2008


Author: clebert.suconic at jboss.com
Date: 2008-04-03 23:07:08 -0400 (Thu, 03 Apr 2008)
New Revision: 4004

Modified:
   branches/Branch_Stable/tests/bin/runtest
   branches/Branch_Stable/tests/src/org/jboss/test/messaging/tools/ServerManagement.java
Log:
Enabling remote debugs again (for the AOP work)

Modified: branches/Branch_Stable/tests/bin/runtest
===================================================================
--- branches/Branch_Stable/tests/bin/runtest	2008-04-03 20:46:38 UTC (rev 4003)
+++ branches/Branch_Stable/tests/bin/runtest	2008-04-04 03:07:08 UTC (rev 4004)
@@ -113,7 +113,7 @@
         shift
         continue;
     fi
-    if [ "$1" = "0" -o "$1" = "1" -o "$1" = "2" ]; then
+    if [ "$1" = "0" -o "$1" = "1" -o "$1" = "2" -o "$1" = "3" ]; then
         remote_debug_index=$1
         shift
         continue;
@@ -156,7 +156,7 @@
 fi
 
 if [ "$remote_debug" = "true" ]; then
-   if [ "$remote_debug_index" = "" ]; then
+   if [ "$remote_debug_index" = "0" ]; then
       REMOTE_DEBUG_FLAG_0="-debug"
       JAVA_OPTS="$JAVA_OPTS -Dtest.remote.debug.index=0"
    elif [ "$remote_debug_index" = "1" ]; then

Modified: branches/Branch_Stable/tests/src/org/jboss/test/messaging/tools/ServerManagement.java
===================================================================
--- branches/Branch_Stable/tests/src/org/jboss/test/messaging/tools/ServerManagement.java	2008-04-03 20:46:38 UTC (rev 4003)
+++ branches/Branch_Stable/tests/src/org/jboss/test/messaging/tools/ServerManagement.java	2008-04-04 03:07:08 UTC (rev 4004)
@@ -369,9 +369,14 @@
       {
          int index = Integer.parseInt(remoteDebugIndex);
 
-         sb.append("-Xmx1024M -Xdebug -Xnoagent -Djava.compiler=NONE ").
-            append("-Xrunjdwp:transport=dt_shmem,server=n,suspend=n,address=rmiserver_").
-            append(index).append(' ');
+         if (index == i)
+         {
+            log.info("************************************************************************************************************************");
+            log.info("Starting server " + index + " with debug on port 1200" + remoteDebugIndex);
+            log.info("************************************************************************************************************************");
+            sb.append("-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1200").
+               append(remoteDebugIndex);
+         }
       }
 
 




More information about the jboss-cvs-commits mailing list