@echo off
REM $Id: oqlquery.bat 5951 2006-05-30 22:18:48Z bsnyder $
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%
