summaryrefslogtreecommitdiffstats
path: root/java/sca
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-01-29 07:58:15 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-01-29 07:58:15 +0000
commit47b040f39def3d834adac3d634441086acc79fa1 (patch)
tree35d6f4a64e257c14fcee45319a77d1f7145ff33c /java/sca
parentbc529eb40d5181c48e4d6a6f900af8cc6696ca8d (diff)
Add a debug option to the launcher .bat to enable easy remote debuging
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@738790 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca')
-rw-r--r--java/sca/distribution/all/src/main/release/launcher/tuscany.bat9
1 files changed, 8 insertions, 1 deletions
diff --git a/java/sca/distribution/all/src/main/release/launcher/tuscany.bat b/java/sca/distribution/all/src/main/release/launcher/tuscany.bat
index 781e806165..6e4cf5e7c4 100644
--- a/java/sca/distribution/all/src/main/release/launcher/tuscany.bat
+++ b/java/sca/distribution/all/src/main/release/launcher/tuscany.bat
@@ -10,6 +10,13 @@ goto error
: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 @@ goto argsLoop
:doneInit
-java -jar %TUSCANY_HOME%/bin/launcher.jar %_CMD_LINE_ARGS%
+java %_XDEBUG% -jar %TUSCANY_HOME%/bin/launcher.jar %_CMD_LINE_ARGS%
goto end