You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by bd...@apache.org on 2005/07/18 15:27:58 UTC

svn commit: r219487 - /cocoon/whiteboard/osgi/cocoon.sh

Author: bdelacretaz
Date: Mon Jul 18 06:27:36 2005
New Revision: 219487

URL: http://svn.apache.org/viewcvs?rev=219487&view=rev
Log:
JAVA_DEBUG_ARGS added to enable remote debugging

Modified:
    cocoon/whiteboard/osgi/cocoon.sh

Modified: cocoon/whiteboard/osgi/cocoon.sh
URL: http://svn.apache.org/viewcvs/cocoon/whiteboard/osgi/cocoon.sh?rev=219487&r1=219486&r2=219487&view=diff
==============================================================================
--- cocoon/whiteboard/osgi/cocoon.sh (original)
+++ cocoon/whiteboard/osgi/cocoon.sh Mon Jul 18 06:27:36 2005
@@ -26,6 +26,10 @@
 #
 # JAVA_HOME
 #   Home of Java installation.
+#
+# JAVA_DEBUG_ARGS
+#   The command line arguments for the internal JVM debugger
+#
 
 # ----- Verify and Set Required Environment Variables -------------------------
 
@@ -38,6 +42,10 @@
   COCOON_HOME='../trunk'
 fi
 
+if [ "$JAVA_DEBUG_ARGS" = "" ] ; then
+  JAVA_DEBUG_ARGS='-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n'
+fi
+
 # ----- Set platform specific variables
 
 PATHSEP=":";
@@ -53,6 +61,6 @@
 
 # ----- Do the action ----------------------------------------------------------
 
-$JAVA $ENDORSED -jar framework.jar
+$JAVA $ENDORSED $JAVA_DEBUG_ARGS -jar framework.jar
 
 exit 0