comparison artifacts/bin/createDatacage.sh @ 8513:6b8410ba48cb

Use Maven instead of potentially outdated JARs for creation of h2-databases. TODO: adapt release script.
author Tom Gottfried <tom@intevation.de>
date Wed, 17 Dec 2014 15:56:41 +0100
parents contrib/make_flys_release/h2/createDatacage.sh@19472d3877d6
children
comparison
equal deleted inserted replaced
8512:de8be181fa87 8513:6b8410ba48cb
1 #!/bin/bash
2
3 mkdir -p datacagedb
4
5 DIR=`dirname $0`
6 DIR=`readlink -f "$DIR"`
7
8 if [ $# != 1 ]; then
9 SCHEMA="$DIR/../doc/conf/datacage.sql"
10 else
11 SCHEMA="$1"
12 fi
13
14 URL="jdbc:h2:`readlink -f datacagedb`/datacage"
15
16 mvn -e -Dexec.mainClass=org.h2.tools.RunScript exec:java \
17 -Dexec.args="-url $URL -script $SCHEMA"

http://dive4elements.wald.intevation.org