aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/shell/run_h2_server
blob: 9b14e63e942223b10bfba37907179e37a87449e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
#
#  run_h2_server -- This script starts the H2 DB server with all necessary jar files.
#  It should be run in the directory containing the MDBC code.
#

POM=pom-h2server.xml

if [ ! -f $POM ]
then
	echo mk_jboss_module: Where is $POM?
	exit 1
fi

mvn -f $POM -Dmaven.test.skip=true install
if [ $? != 0 ]
then
	echo mk_jboss_module: maven failed...
	exit 1
fi

export CLASSPATH=$( mvn -f $POM dependency:build-classpath | grep -v INFO )
echo CLASSPATH is:
echo $CLASSPATH | tr : '\012'

cd /tmp
java org.h2.tools.Server