Mercurial > dive4elements > river
annotate artifacts/bin/run.sh @ 8755:30b1ddadf275
(issue1801) Unify reference gauge finding code
The basic way as described in the method comment of the
determineRefGauge method is now used in the WINFOArtifact,
MainValuesService and RiverUtils.getGauge method.
RiverUtils.getGauge previously just returned the first
gauge found. While this is now a behavior change I believe
that it is always more correct then the undeterministic
behavior of the previous implmenentation.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 24 Jun 2015 14:07:26 +0200 |
parents | 522c46c53861 |
children | 654aaa0d7576 |
rev | line source |
---|---|
8511
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
1 #!/bin/bash |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
2 |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
3 APP=org.dive4elements.artifactdatabase.App |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
4 |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
5 DIR=`dirname $0`/.. |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
6 DIR=`readlink -f "$DIR"` |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
7 |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
8 CLASSPATH= |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
9 for l in `find "$DIR/bin/lib" -name \*.jar -print`; do |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
10 CLASSPATH=$CLASSPATH:$l |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
11 done |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
12 |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
13 export CLASSPATH |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
14 |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
15 exec java -Xmx1024m \ |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
16 -server \ |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
17 -Djava.awt.headless=true \ |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
18 -Dflys.datacage.recommendations.development=false \ |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
19 -Djava.io.tmpdir="$DIR/cache" \ |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
20 -Dflys.uesk.keep.artifactsdir=false \ |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
21 -Dwsplgen.bin.path="$DIR/bin/wsplgen" \ |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
22 -Dwsplgen.log.output=false \ |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
23 -Dartifact.database.dir="$DIR/conf" \ |
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
diff
changeset
|
24 $APP |