Strabon

view strabon @ 28:bf7e497a0b9e

Added QueryDir op, modified poms to include latest jdbc driver (MonetDB-11.7.8-NOA_20120228a_SQL_C_Strabon.tar.bz2 with 43531:856fbc4256ff patch)
author Kostis Kyzirakos <kkyzir@di.uoa.gr>
date Wed Feb 29 13:41:48 2012 +0200 (2012-02-29)
parents
children 070de580b6cc
line source
1 #! /bin/bash
3 dbName=$1
4 dirs=$2
6 # Evaluates a query using Strabon that is stored in $dir
7 #dir='/home/ggarbis/workspaces/Strabon-workspace/Strabon/jars/target'
8 dir='/home/kkyzir/teleios/nkua/Strabon/jars/target'
10 # Arguments for QueryDir
11 HOST='localhost'
12 PORT='50000'
13 DATABASE=$dbName
14 USERNAME='monetdb'
15 PASSWORD='monetdb'
16 FORMAT=''
17 DIRS=$2
19 # Construct classpath with dependencies
20 cd $dir &&
21 for file in `ls -1 *.jar`;
22 do
23 myVar=$myVar./$file":";
24 done;
26 # Evaluate a query
27 java -Xmx5000M -cp $myVar eu.earthobservatory.runtime.monetdb.QueryDir $HOST $PORT $DATABASE $USERNAME $PASSWORD "$DIRS" $FORMAT