diff options
Diffstat (limited to '')
-rw-r--r-- | java/sca/distribution/all/src/main/release/launcher/tuscany.bat | 35 |
1 files changed, 32 insertions, 3 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 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
|