@echo off
REM $Id: oqlquery.bat,v 1.1.1.1 2003/03/03 07:05:45 kvisco Exp $
set JAVA=%JAVA_HOME%\bin\java
set OLDCP=%CLASSPATH%
set CLASSPATH=build\classes;build\tests;build\examples;%CLASSPATH%
set cp=%CLASSPATH%
for %%i in (lib\*.jar) do call cp.bat %%i

if not "%2"=="" goto run
echo Usage: oqlquery.bat DatabaseName DatabaseConfig
echo Example: oqlquery.bat test file:build/examples/jdo/database.xml
goto end

:run
%JAVA% -classpath %CP% org.exolab.castor.gui.QueryAnalyser %1 %2

:end
set CLASSPATH=%OLDCP%
