From b176971379ff862d564488f6c9a4b5780abfa7d8 Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 29 Jan 2009 07:35:36 +0000 Subject: More launcher bringup, start making the .bat file a bit more useable git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@738784 13f79535-47bb-0310-9956-ffa450edef68 --- .../all/src/main/release/launcher/tuscany.bat | 35 ++++++++++++++++++++-- 1 file changed, 32 insertions(+), 3 deletions(-) (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 823eea56e2..781e806165 100644 --- a/java/sca/distribution/all/src/main/release/launcher/tuscany.bat +++ b/java/sca/distribution/all/src/main/release/launcher/tuscany.bat @@ -1,6 +1,35 @@ @echo off -REM bla +if not "%TUSCANY_HOME%"=="" goto gotHome +SET TUSCANY_HOME=%~dp0\.. +if not "%TUSCANY_HOME%"=="" goto gotHome +echo. +echo cannot find TUSCANY_HOME please set TUSCANY_HOME variable to the Tuscany installation dir +echo. +goto error +:gotHome + + +set _CMD_LINE_ARGS= +:argsLoop +if %1a==a goto doneInit +set _CMD_LINE_ARGS=%_CMD_LINE_ARGS% %1 +shift +goto argsLoop + + +:doneInit + +java -jar %TUSCANY_HOME%/bin/launcher.jar %_CMD_LINE_ARGS% + +goto end + + +:error +set ERROR_CODE=1 + + +:end +@endlocal +exit /B %ERROR_CODE% -java -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y -jar launcher.jar %1 %2 %3 %4 %5 %6 %7 -REM java -jar launcher.jar %1 %2 %3 %4 %5 %6 %7 -- cgit v1.2.3