#!/bin/bash

DIR=`dirname $0`/..
CLASSPATH=
for l in `find -name \*.jar -print`; do
   CLASSPATH=$CLASSPATH:$l
done

export CLASSPATH

exec java -Xmx256m \
     -server \
     -Djava.io.tmpdir=/tmp/ \
     -Dartifact.database.dir="$DIR/conf" \
     de.intevation.artifactdatabase.App \
     2>&1 > /dev/null
