Strabon

annotate 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
rev   line source
kkyzir@28 1 #! /bin/bash
kkyzir@28 2
kkyzir@28 3 dbName=$1
kkyzir@28 4 dirs=$2
kkyzir@28 5
kkyzir@28 6 # Evaluates a query using Strabon that is stored in $dir
kkyzir@28 7 #dir='/home/ggarbis/workspaces/Strabon-workspace/Strabon/jars/target'
kkyzir@28 8 dir='/home/kkyzir/teleios/nkua/Strabon/jars/target'
kkyzir@28 9
kkyzir@28 10 # Arguments for QueryDir
kkyzir@28 11 HOST='localhost'
kkyzir@28 12 PORT='50000'
kkyzir@28 13 DATABASE=$dbName
kkyzir@28 14 USERNAME='monetdb'
kkyzir@28 15 PASSWORD='monetdb'
kkyzir@28 16 FORMAT=''
kkyzir@28 17 DIRS=$2
kkyzir@28 18
kkyzir@28 19 # Construct classpath with dependencies
kkyzir@28 20 cd $dir &&
kkyzir@28 21 for file in `ls -1 *.jar`;
kkyzir@28 22 do
kkyzir@28 23 myVar=$myVar./$file":";
kkyzir@28 24 done;
kkyzir@28 25
kkyzir@28 26 # Evaluate a query
kkyzir@28 27 java -Xmx5000M -cp $myVar eu.earthobservatory.runtime.monetdb.QueryDir $HOST $PORT $DATABASE $USERNAME $PASSWORD "$DIRS" $FORMAT