You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Gary Zuo <gx...@yahoo.com> on 2002/07/17 05:11:14 UTC
modified .bat files for the examples for Win2K
The .bat files in the distribution doesn't work on my Win2K
machine. The follwing is my modified files:
C:\app\velocity-1.3\examples\app_example1>cat *.bat
@echo off
set VELCP=.
for %%i in (..\..\*.jar) do call :set_VELCP %%i
for %%i in (..\..\bin\*.jar) do call :set_VELCP %%i
for %%i in (..\..\build\lib\*.jar) do call :set_VELCP %%i
echo Using classpath: %VELCP%
java -cp %VELCP% Example example.vm
:set_VELCP
set VELCP=%VELCP%;%1
C:\app\velocity-1.3\examples\app_example2>cat *bat
@echo off
set VELCP=.
for %%i in (..\..\*.jar) do call :set_VELCP %%i
for %%i in (..\..\bin\*.jar) do call :set_VELCP %%i
for %%i in (..\..\build\lib\*.jar) do call :set_VELCP %%i
echo Using classpath: %VELCP%
java -cp %VELCP% Example2
:set_VELCP
set VELCP=%VELCP%;%1
C:\app\velocity-1.3\examples\xmlapp_example>cat *.bat
@echo off
set VELCP=%CLASSPATH%;.
for %%i in (..\..\*.jar) do call :set_VELCP %%i
for %%i in (..\..\bin\*.jar) do call :set_VELCP %%i
for %%i in (..\..\build\lib\*.jar) do call :set_VELCP %%i
echo Using classpath: %VELCP%
java -cp %VELCP% XMLTest xml.vm
:set_VELCP
set VELCP=%VELCP%;%1
__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>