diff options
author | Lex Spoon <lex@lexspoon.org> | 2006-02-27 13:29:02 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2006-02-27 13:29:02 +0000 |
commit | 5a1d969571966327ac3e46c06edcd24d55ab9a1c (patch) | |
tree | 51f637ce6d3cf460f752261259793d24597ac303 /src | |
parent | eb73a9886ddac9cb9079553a6c978070d2c2a80e (diff) | |
download | scala-5a1d969571966327ac3e46c06edcd24d55ab9a1c.tar.gz scala-5a1d969571966327ac3e46c06edcd24d55ab9a1c.tar.bz2 scala-5a1d969571966327ac3e46c06edcd24d55ab9a1c.zip |
- added a missing %
- use SCALA_HOME instead of _SCALA_HOME, for consistency with the Unix
template
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/ant/templates/tool-windows.tmpl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/ant/templates/tool-windows.tmpl b/src/compiler/scala/tools/ant/templates/tool-windows.tmpl index c5f369eafa..679fa028eb 100644 --- a/src/compiler/scala/tools/ant/templates/tool-windows.tmpl +++ b/src/compiler/scala/tools/ant/templates/tool-windows.tmpl @@ -10,10 +10,9 @@ rem ########################################################################## if "%OS%"=="Windows_NT" ( @@setlocal - set _SCALA_HOME=%~dp0.. + set SCALA_HOME=%~dp0..% ) else ( - set _SCALA_HOME=%SCALA_HOME% - if "%_SCALA_HOME%"=="" goto error1 + if "%SCALA_HOME%"=="" goto error1 ) set _JAVACMD=%JAVACMD% @@ -22,7 +21,7 @@ set _JAVAFLAGS=@javaflags@ set _CLASSPATH=@classpath@ if not "%_CLASSPATH%"=="" goto args -for %%f in ("%_SCALA_HOME%\lib\*.jar") do call :add_cpath "%%f" +for %%f in ("%SCALA_HOME%\lib\*.jar") do call :add_cpath "%%f" :args set _ARGS= @@ -34,7 +33,7 @@ shift goto loop :exec -set _PROPS=-Dscala.home="%_SCALA_HOME%" -Dscala.tool.name="@name@" -Dscala.tool.version="@version@" @properties@ +set _PROPS=-Dscala.home="%SCALA_HOME%" -Dscala.tool.name="@name@" -Dscala.tool.version="@version@" @properties@ rem echo %_JAVACMD% %_JAVAFLAGS% %_PROPS% -cp "%_CLASSPATH%" @class@ @toolflags@ %_ARGS% %_JAVACMD% %_JAVAFLAGS% %_PROPS% -cp "%_CLASSPATH%" @class@ @toolflags@ %_ARGS% |