Author: antelder
Date: Sat Nov 18 07:27:24 2006
New Revision: 476536
URL: http://svn.apache.org/viewvc?view=rev&rev=476536
Log:
Add a -xdebug parameter to the syanpse.bat file to enable remote debugging
Modified:
incubator/synapse/trunk/java/src/main/bin/synapse.bat
Modified: incubator/synapse/trunk/java/src/main/bin/synapse.bat
URL:
http://svn.apache.org/viewvc/incubator/synapse/trunk/java/src/main/bin/synapse.bat?view=diff&rev=476536&r1=476535&r2=476536
==============================================================================
--- incubator/synapse/trunk/java/src/main/bin/synapse.bat (original)
+++ incubator/synapse/trunk/java/src/main/bin/synapse.bat Sat Nov 18 07:27:24
2006
@@ -28,6 +28,7 @@
set _USE_CLASSPATH=yes
set _SYNAPSE_XML=
+set _XDEBUG=
rem Slurp the command line arguments. This loop allows for an unlimited number
rem of arguments (up to the command line limit, anyway).
@@ -40,6 +41,7 @@
:setupArgs
if ""%1""=="""" goto doneStart
if ""%1""==""-noclasspath"" goto clearclasspath
+if ""%1""==""-xdebug"" goto xdebug
set SYNAPSE_CMD_LINE_ARGS=%SYNAPSE_CMD_LINE_ARGS% %1
shift
goto setupArgs
@@ -50,6 +52,12 @@
shift
goto setupArgs
+rem here is there is a -xdebug in the options
+:xdebug
+set _XDEBUG=-Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,server=y,address=8000
+shift
+goto setupArgs
+
rem This label provides a place for the argument list loop to break out
rem and for NT handling to skip to.
@@ -99,7 +107,7 @@
@echo on
cd %SYNAPSE_HOME%
-"%_JAVACMD%" %_SYNAPSE_XML%
-Daxis2.xml="%SYNAPSE_HOME%\repository\conf\axis2.xml"
-Djava.endorsed.dirs=%SYNAPSE_ENDORSED% -cp %SYNAPSE_CLASS_PATH%
org.apache.synapse.SynapseHTTPServer %SYNAPSE_CMD_LINE_ARGS%
+"%_JAVACMD%" %_SYNAPSE_XML%
-Daxis2.xml="%SYNAPSE_HOME%\repository\conf\axis2.xml"
-Djava.endorsed.dirs=%SYNAPSE_ENDORSED% %_XDEBUG% -cp %SYNAPSE_CLASS_PATH%
org.apache.synapse.SynapseHTTPServer %SYNAPSE_CMD_LINE_ARGS%
goto end
:end
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]