[Nice-commit] Nice/bin nicec.bat,1.6,1.7
Brought to you by:
bonniot
From: <ar...@us...> - 2003-05-12 11:22:56
|
Update of /cvsroot/nice/Nice/bin In directory sc8-pr-cvs1:/tmp/cvs-serv18684/F:/nice/bin Modified Files: nicec.bat Log Message: When running nicec in windows force the user to set the NICE environement variable first so that nicec.bat works the first time. Index: nicec.bat =================================================================== RCS file: /cvsroot/nice/Nice/bin/nicec.bat,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** nicec.bat 17 Jun 2002 22:18:34 -0000 1.6 --- nicec.bat 12 May 2003 11:22:53 -0000 1.7 *************** *** 1,39 **** ! @echo off ! rem --------------------------------------------------------------------------- ! rem nicec.bat - a nice compiler batch file ! rem ! rem Environment Variariable Prerequisites: ! rem ! rem NICE - the root directory where nice is installed ! rem ! rem thanks to the catalina team for some batch file inspiration ! rem ! rem questions to ja...@th... ! rem ! rem --------------------------------------------------------------------------- ! ! rem -- do we have a nice environment variable? ! if not "%NICE%" == "" goto gotNice ! ! rem -- try some standard places ! ! set NICE=c:\nice ! if exists %NICE%\nice.jar goto gotNice ! ! set NICE="c:\Program Files\nice" ! if exists %NICE%\nice.jar goto gotNice ! ! echo You must set NICE to point to the directory you've installed nice in e.g. ! echo set NICE=c:\java\nice ! echo You can do it by modifying this script (nicec.bat) or in Autoexec.bat ! goto cleanup ! :gotNice ! ! rem -- set up the reference to the nice jar file ! set NICEJAR=%NICE%\nice.jar ! java -classpath %NICEJAR%;%CLASSPATH% nice.tools.compiler.fun --runtime=%NICEJAR% %1 %2 %3 %4 %5 %6 %7 %8 %9 ! ! rem -- cleanup environment variables ! :cleanup ! set NICEJAR= ! :finish --- 1,21 ---- ! @echo off ! rem --------------------------------------------------------------------------- ! rem nicec.bat - a nice compiler batch file ! rem ! rem Environment Variariable Prerequisites: ! rem ! rem NICE - the root directory where nice is installed ! rem --------------------------------------------------------------------------- ! ! rem -- do we have a nice environment variable? ! if not "%NICE%" == "" goto gotNice ! ! echo You must set the NICE environment variable to point to the directory you've installed nice in e.g. ! echo set NICE=C:\programs\nice (note: do not add a ';' at the end) ! echo You can do it by modifying Autoexec.bat or in the system settings. ! goto end ! ! :gotNice ! java -classpath %NICE%\nice.jar;%CLASSPATH% nice.tools.compiler.fun --runtime=%NICE%\nice.jar %1 %2 %3 %4 %5 %6 %7 %8 %9 ! ! :end |