You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2009/01/29 08:58:16 UTC
svn commit: r738790 -
/tuscany/java/sca/distribution/all/src/main/release/launcher/tuscany.bat
Author: antelder
Date: Thu Jan 29 07:58:15 2009
New Revision: 738790
URL: http://svn.apache.org/viewvc?rev=738790&view=rev
Log:
Add a debug option to the launcher .bat to enable easy remote debuging
Modified:
tuscany/java/sca/distribution/all/src/main/release/launcher/tuscany.bat
Modified: tuscany/java/sca/distribution/all/src/main/release/launcher/tuscany.bat
URL: http://svn.apache.org/viewvc/tuscany/java/sca/distribution/all/src/main/release/launcher/tuscany.bat?rev=738790&r1=738789&r2=738790&view=diff
==============================================================================
--- tuscany/java/sca/distribution/all/src/main/release/launcher/tuscany.bat (original)
+++ tuscany/java/sca/distribution/all/src/main/release/launcher/tuscany.bat Thu Jan 29 07:58:15 2009
@@ -10,6 +10,13 @@
:gotHome
+set _XDEBUG=
+if not %1==debug goto skipDebug
+set _XDEBUG=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y
+shift
+:skipDebug
+
+
set _CMD_LINE_ARGS=
:argsLoop
if %1a==a goto doneInit
@@ -20,7 +27,7 @@
:doneInit
-java -jar %TUSCANY_HOME%/bin/launcher.jar %_CMD_LINE_ARGS%
+java %_XDEBUG% -jar %TUSCANY_HOME%/bin/launcher.jar %_CMD_LINE_ARGS%
goto end