summaryrefslogtreecommitdiffstats
path: root/java/sca/distribution/all/src/main
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-01-29 09:00:54 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-01-29 09:00:54 +0000
commit6fef86dd0eb4d71447295ce319357d6103855a50 (patch)
tree984329e7efb6a6c7cd462484523368940938d2a6 /java/sca/distribution/all/src/main
parent3a570382b961c5b96cb07a374854a127bdb63b5f (diff)
Add some simple /? help and a fork option to use a new command prompt to run Tuscany which makes it easier to run the samples that have seperate samples for the service and reference
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@738803 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/distribution/all/src/main')
-rw-r--r--java/sca/distribution/all/src/main/release/launcher/tuscany.bat19
1 files changed, 18 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 6e4cf5e7c4..5b6912f065 100644
--- a/java/sca/distribution/all/src/main/release/launcher/tuscany.bat
+++ b/java/sca/distribution/all/src/main/release/launcher/tuscany.bat
@@ -1,5 +1,7 @@
@echo off
+if "%1"=="/?" goto help
+
if not "%TUSCANY_HOME%"=="" goto gotHome
SET TUSCANY_HOME=%~dp0\..
if not "%TUSCANY_HOME%"=="" goto gotHome
@@ -16,6 +18,11 @@ set _XDEBUG=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=
shift
:skipDebug
+set _FORK=
+if not %1==fork goto skipFork
+set _FORK=start
+shift
+:skipFORK
set _CMD_LINE_ARGS=
:argsLoop
@@ -27,10 +34,20 @@ goto argsLoop
:doneInit
-java %_XDEBUG% -jar %TUSCANY_HOME%/bin/launcher.jar %_CMD_LINE_ARGS%
+%_FORK% java %_XDEBUG% -jar %TUSCANY_HOME%/bin/launcher.jar %_CMD_LINE_ARGS%
goto end
+:help
+
+echo Apache Tuscany SCA runtime launcher
+echo TUSCANY [debug] [fork] contributions
+echo debug enable Java remote debugging
+echo fork start a new command prompt window to run the contributions
+echo contributions list of SCA contribution file names seperated by spaces. All
+echo deployable composites found in the contributions will be run.
+
+goto end
:error
set ERROR_CODE=1