Mercurial > dive4elements > river
annotate etl/bin/run.sh @ 9447:3f4215ddd6b4
Changed bundu bzws soundings selection to single select, added bed height query variant for field bed heights
author | mschaefer |
---|---|
date | Wed, 22 Aug 2018 09:00:54 +0200 |
parents | 4542d23f98bf |
children | 0a5239a1e46e |
rev | line source |
---|---|
4113
f72c253663fc
FYLS/AFT/DIPS: Added start script.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
1 #!/bin/bash |
f72c253663fc
FYLS/AFT/DIPS: Added start script.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
2 |
8835
d8d71005a210
ETL: use Java 7, include run-script and docs when packaging.
Tom Gottfried <tom@intevation.de>
parents:
5838
diff
changeset
|
3 APP=org.dive4elements.river.etl.aft.Sync |
d8d71005a210
ETL: use Java 7, include run-script and docs when packaging.
Tom Gottfried <tom@intevation.de>
parents:
5838
diff
changeset
|
4 |
d8d71005a210
ETL: use Java 7, include run-script and docs when packaging.
Tom Gottfried <tom@intevation.de>
parents:
5838
diff
changeset
|
5 DIR=`dirname $0` |
d8d71005a210
ETL: use Java 7, include run-script and docs when packaging.
Tom Gottfried <tom@intevation.de>
parents:
5838
diff
changeset
|
6 DIR=`readlink -f $DIR` |
d8d71005a210
ETL: use Java 7, include run-script and docs when packaging.
Tom Gottfried <tom@intevation.de>
parents:
5838
diff
changeset
|
7 |
8837
4542d23f98bf
ETL: Add shell parameters for config to run script.
Tom Gottfried <tom@intevation.de>
parents:
8835
diff
changeset
|
8 CONF=${1:-../doc/conf.xml} |
4542d23f98bf
ETL: Add shell parameters for config to run script.
Tom Gottfried <tom@intevation.de>
parents:
8835
diff
changeset
|
9 CONF=$(readlink -f $CONF) |
4542d23f98bf
ETL: Add shell parameters for config to run script.
Tom Gottfried <tom@intevation.de>
parents:
8835
diff
changeset
|
10 LOG4J_CONF=${2:-log4j.properties} |
4542d23f98bf
ETL: Add shell parameters for config to run script.
Tom Gottfried <tom@intevation.de>
parents:
8835
diff
changeset
|
11 LOG4J_CONF=$(readlink -f $LOG4J_CONF) |
4542d23f98bf
ETL: Add shell parameters for config to run script.
Tom Gottfried <tom@intevation.de>
parents:
8835
diff
changeset
|
12 |
8835
d8d71005a210
ETL: use Java 7, include run-script and docs when packaging.
Tom Gottfried <tom@intevation.de>
parents:
5838
diff
changeset
|
13 CLASSPATH= |
d8d71005a210
ETL: use Java 7, include run-script and docs when packaging.
Tom Gottfried <tom@intevation.de>
parents:
5838
diff
changeset
|
14 for l in `find "$DIR/lib" -name \*.jar -print`; do |
d8d71005a210
ETL: use Java 7, include run-script and docs when packaging.
Tom Gottfried <tom@intevation.de>
parents:
5838
diff
changeset
|
15 CLASSPATH=$CLASSPATH:$l |
d8d71005a210
ETL: use Java 7, include run-script and docs when packaging.
Tom Gottfried <tom@intevation.de>
parents:
5838
diff
changeset
|
16 done |
d8d71005a210
ETL: use Java 7, include run-script and docs when packaging.
Tom Gottfried <tom@intevation.de>
parents:
5838
diff
changeset
|
17 |
d8d71005a210
ETL: use Java 7, include run-script and docs when packaging.
Tom Gottfried <tom@intevation.de>
parents:
5838
diff
changeset
|
18 export CLASSPATH |
d8d71005a210
ETL: use Java 7, include run-script and docs when packaging.
Tom Gottfried <tom@intevation.de>
parents:
5838
diff
changeset
|
19 |
4113
f72c253663fc
FYLS/AFT/DIPS: Added start script.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
20 exec java \ |
8837
4542d23f98bf
ETL: Add shell parameters for config to run script.
Tom Gottfried <tom@intevation.de>
parents:
8835
diff
changeset
|
21 -Dlog4j.configuration=file://$LOG4J_CONF \ |
4542d23f98bf
ETL: Add shell parameters for config to run script.
Tom Gottfried <tom@intevation.de>
parents:
8835
diff
changeset
|
22 -Dconfig.file=$CONF \ |
8835
d8d71005a210
ETL: use Java 7, include run-script and docs when packaging.
Tom Gottfried <tom@intevation.de>
parents:
5838
diff
changeset
|
23 $APP |