[PATCH] Add script for creation of h2-database and remove concurrent config
Wald Commits
scm-commit at wald.intevation.org
Wed Dec 17 15:46:25 CET 2014
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1418827581 -3600
# Node ID 8bf00b8266fe8dc3181997d3dc8d3f417ee1c161
# Parent a3397b6aab0aca120e99a8d8ed09294018936534
Add script for creation of h2-database and remove concurrent config.
diff -r a3397b6aab0a -r 8bf00b8266fe artifact-database/bin/createArtifacts.sh
--- /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"
diff -r a3397b6aab0a -r 8bf00b8266fe artifact-database/pom.xml
--- a/artifact-database/pom.xml Tue Dec 16 17:39:57 2014 +0100
+++ b/artifact-database/pom.xml Wed Dec 17 15:46:21 2014 +0100
@@ -28,19 +28,6 @@
</archive>
</configuration>
</plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.1</version>
- <configuration>
- <executable>java</executable>
- <arguments>
- <argument>-classpath</argument>
- <classpath/>
- <argument>org.dive4elements.artifactdatabase.App</argument>
- </arguments>
- </configuration>
- </plugin>
</plugins>
</build>
<dependencies>
More information about the Dive4Elements-commits
mailing list