Author: antelder
Date: Thu Jan 29 09:00:54 2009
New Revision: 738803

URL: http://svn.apache.org/viewvc?rev=738803&view=rev
Log:
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

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=738803&r1=738802&r2=738803&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 09:00:54 2009
@@ -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 @@
 shift
 :skipDebug
 
+set _FORK=
+if not %1==fork goto skipFork
+set _FORK=start
+shift
+:skipFORK
 
 set _CMD_LINE_ARGS=
 :argsLoop
@@ -27,10 +34,20 @@
 
 :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


Reply via email to