@echo off
setlocal

set dist=%~dp0

set jars=%dist%\xerces.jar;%dist%\resolver.jar;%dist%\relaxng.jar;%dist%\jh.jar;%dist%\saxon.jar;%dist%\saxon9.jar

if exist "%dist%\xxe.jar" goto jar
set cp=%dist%\..\class;%jars%
goto fi
:jar
set cp=%dist%\xxe_tool.jar;%dist%\xxe.jar;%jars%;%dist%\xxe_help.jar
:fi

if exist "%dist%\jre\bin\java.exe" goto privatejre
set java=java
goto fi2
:privatejre
set java=%dist%\jre\bin\java.exe
:fi2

"%java%" -classpath "%cp%" com.xmlmind.xmledittool.deploy.DeployWebStart %*
