From 6fef86dd0eb4d71447295ce319357d6103855a50 Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 29 Jan 2009 09:00:54 +0000 Subject: 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 --- .../all/src/main/release/launcher/tuscany.bat | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'java/sca/distribution/all/src/main') 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 -- cgit v1.2.3