@echo off
setLocal EnableDelayedExpansion

REM Path to this script
set PWD=%~dp0

REM Core and library classes
set CP=%PWD%/../target/classes
set LIB=%PWD%/../lib
for /R "%LIB%" %%a in (*.jar) do set CP=!CP!;%%a
set LIB=%PWD%/../../basex-core/lib
for /R "%LIB%" %%a in (*.jar) do set CP=!CP!;%%a

REM Run code
java -cp %CP% %BASEX_JVM% org.basex.BaseXHTTP %* stop
