tom@538: #!/bin/bash tom@538: tom@538: mkdir -p artifactsdb tom@538: tom@538: DIR=`dirname $0` tom@538: DIR=`readlink -f "$DIR"` tom@538: tom@538: if [ $# != 1 ]; then tom@538: SCHEMA="$DIR/../doc/schema-h2.sql" tom@538: else tom@538: SCHEMA="$1" tom@538: fi tom@538: tom@538: URL="jdbc:h2:`readlink -f artifactsdb`/artifacts" tom@538: tom@538: mvn -e -Dexec.mainClass=org.h2.tools.RunScript exec:java \ tom@538: -Dexec.args="-url $URL -script $SCHEMA"