Mercurial > dive4elements > river
comparison etl/bin/run.sh @ 8837:4542d23f98bf
ETL: Add shell parameters for config to run script.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 17 May 2017 17:45:56 +0200 |
parents | d8d71005a210 |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8836:f06d7a40bde5 | 8837:4542d23f98bf |
---|---|
2 | 2 |
3 APP=org.dive4elements.river.etl.aft.Sync | 3 APP=org.dive4elements.river.etl.aft.Sync |
4 | 4 |
5 DIR=`dirname $0` | 5 DIR=`dirname $0` |
6 DIR=`readlink -f $DIR` | 6 DIR=`readlink -f $DIR` |
7 | |
8 CONF=${1:-../doc/conf.xml} | |
9 CONF=$(readlink -f $CONF) | |
10 LOG4J_CONF=${2:-log4j.properties} | |
11 LOG4J_CONF=$(readlink -f $LOG4J_CONF) | |
7 | 12 |
8 CLASSPATH= | 13 CLASSPATH= |
9 for l in `find "$DIR/lib" -name \*.jar -print`; do | 14 for l in `find "$DIR/lib" -name \*.jar -print`; do |
10 CLASSPATH=$CLASSPATH:$l | 15 CLASSPATH=$CLASSPATH:$l |
11 done | 16 done |
12 | 17 |
13 export CLASSPATH | 18 export CLASSPATH |
14 | 19 |
15 exec java \ | 20 exec java \ |
16 -Dlog4j.configuration=file://$DIR/log4j.properties \ | 21 -Dlog4j.configuration=file://$LOG4J_CONF \ |
17 -Dconfig.file=$DIR/../doc/conf.xml \ | 22 -Dconfig.file=$CONF \ |
18 $APP | 23 $APP |