Mercurial > dive4elements > framework
diff artifact-database/bin/createArtifacts.sh @ 538:8bf00b8266fe 3.1.10
Add script for creation of h2-database and remove concurrent config.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 17 Dec 2014 15:46:21 +0100 |
parents | |
children | 2b40f4bf190d |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/artifact-database/bin/createArtifacts.sh Wed Dec 17 15:46:21 2014 +0100 @@ -0,0 +1,17 @@ +#!/bin/bash + +mkdir -p artifactsdb + +DIR=`dirname $0` +DIR=`readlink -f "$DIR"` + +if [ $# != 1 ]; then + SCHEMA="$DIR/../doc/schema-h2.sql" +else + SCHEMA="$1" +fi + +URL="jdbc:h2:`readlink -f artifactsdb`/artifacts" + +mvn -e -Dexec.mainClass=org.h2.tools.RunScript exec:java \ + -Dexec.args="-url $URL -script $SCHEMA"