diff options
author | michelou <michelou@epfl.ch> | 2007-05-28 13:08:32 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-05-28 13:08:32 +0000 |
commit | 6018a932ce3ffc259914ee442f5ea3983439e0f1 (patch) | |
tree | 1fcb3b8bf83b734ee493c583e64f8ebd2f4b8e03 /src | |
parent | 0d18ad8861351545fae6d024710c137a18f42996 (diff) | |
download | scala-6018a932ce3ffc259914ee442f5ea3983439e0f1.tar.gz scala-6018a932ce3ffc259914ee442f5ea3983439e0f1.tar.bz2 scala-6018a932ce3ffc259914ee442f5ea3983439e0f1.zip |
uses _ARGS=%* on Windows NT or newer
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/ant/templates/tool-windows.tmpl | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/compiler/scala/tools/ant/templates/tool-windows.tmpl b/src/compiler/scala/tools/ant/templates/tool-windows.tmpl index 5398672fac..0809b2c117 100644 --- a/src/compiler/scala/tools/ant/templates/tool-windows.tmpl +++ b/src/compiler/scala/tools/ant/templates/tool-windows.tmpl @@ -17,11 +17,13 @@ rem - Local batch variables start with an underscore ('_') if "%OS%"=="Windows_NT" (
@@setlocal
call :set_home
+ set _ARGS=%*
) else (
set _SCALA_HOME=%SCALA_HOME%
rem The following line tests SCALA_HOME instead of _SCALA_HOME, because
rem the above change to _SCALA_HOME is not visible within this block.
if "%SCALA_HOME%"=="" goto error1
+ call :set_args
)
rem We use the value of the JAVACMD environment variable if defined
@@ -54,15 +56,6 @@ if "%_BOOT_CLASSPATH%"=="" ( )
)
-set _ARGS=
-:loop
-rem Argument %1 may contain quotes so we use parentheses here
-if (%1)==() goto exec
-set _ARGS=%_ARGS% %1
-shift
-goto loop
-
-:exec
set _PROPS=-Dscala.home="%_SCALA_HOME%" -Denv.classpath="%CLASSPATH%" -Dilasm.tool="%_ILASM%" @properties@
rem echo %_JAVACMD% -Xbootclasspath/a:"%_BOOT_CLASSPATH%" %_JAVA_OPTS% %_PROPS% -cp "%_EXTENSION_CLASSPATH%" @class@ @toolflags@ %_ARGS%
@@ -93,6 +86,15 @@ goto :eof set _ILASM=%~$PATH:1
goto :eof
+:set_args
+ set _ARGS=
+ :loop
+ rem Argument %1 may contain quotes so we use parentheses here
+ if (%1)==() goto :eof
+ set _ARGS=%_ARGS% %1
+ shift
+ goto loop
+
rem ##########################################################################
rem # errors
|