Mercurial > dive4elements > gnv-client
annotate gnv-artifacts/bin/run.sh @ 773:5fb1ea68e19c
Avoid danger to get a NullPointerException if no time to live is served by CallContext.
gnv-artifacts/trunk@832 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 26 Mar 2010 09:55:28 +0000 |
parents | 874644bf1da8 |
children | f953c9a559d8 |
rev | line source |
---|---|
261
874644bf1da8
Added start-script to version control.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
1 #!/bin/bash |
874644bf1da8
Added start-script to version control.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
2 |
874644bf1da8
Added start-script to version control.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
3 DIR=`dirname $0`/.. |
874644bf1da8
Added start-script to version control.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
4 CLASSPATH= |
874644bf1da8
Added start-script to version control.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
5 for l in `find -name \*.jar -print`; do |
874644bf1da8
Added start-script to version control.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
6 CLASSPATH=$CLASSPATH:$l |
874644bf1da8
Added start-script to version control.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
7 done |
874644bf1da8
Added start-script to version control.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
8 |
874644bf1da8
Added start-script to version control.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
9 export CLASSPATH |
874644bf1da8
Added start-script to version control.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
10 |
874644bf1da8
Added start-script to version control.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
11 exec java -Xmx256m \ |
874644bf1da8
Added start-script to version control.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
12 -server \ |
874644bf1da8
Added start-script to version control.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
13 -Djava.io.tmpdir=/tmp/ \ |
874644bf1da8
Added start-script to version control.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
14 -Dartifact.database.dir="$DIR/conf" \ |
874644bf1da8
Added start-script to version control.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
15 de.intevation.artifactdatabase.App \ |
874644bf1da8
Added start-script to version control.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
16 2>&1 > /dev/null |