diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-01-29 07:35:36 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-01-29 07:35:36 +0000 |
commit | b176971379ff862d564488f6c9a4b5780abfa7d8 (patch) | |
tree | 212f8309d1bd8960fb53b3a6743dd7ad69b9ab6d /java/sca/distribution/all/src/main | |
parent | b00d62abdd330759cf7222cafd0210e5d70109bd (diff) |
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
Diffstat (limited to 'java/sca/distribution/all/src/main')
-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
|