#!/bin/sh
set +u

dist=`dirname $0`

jars=$dist/xp.jar:$dist/resolver.jar:$dist/relaxng.jar:$dist/xsc.jar:$dist/jh.jar:$dist/ftp.jar:$dist/http.jar:$dist/saxon.jar:$dist/kunststoff.jar

if [ -f $dist/xxe.jar ]; then
    cp=$dist/xxe_tool.jar:$dist/xxe_app.jar:$dist/xxe.jar:$jars:$dist/xxe_help.jar
elif [ -d $dist/../class/com/xmlmind/xmledit ]; then
    cp=$dist/../class:$jars
else
    echo "xxe.jar not found"
    exit 2
fi

java -classpath "$cp" com.xmlmind.xmledittool.deploy.DeployApplet "$@"

