#!/bin/bash

APP=org.dive4elements.river.etl.aft.Sync

DIR=`dirname $0`
DIR=`readlink -f $DIR`

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

export CLASSPATH

exec java \
    -Dlog4j.configuration=file://$DIR/log4j.properties \
    -Dconfig.file=$DIR/../doc/conf.xml \
    $APP
