diff options
-rw-r--r-- | java/sca/distribution/all/src/main/release/launcher/tuscany.bat | 19 |
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
|