sql-dk startup shell script v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Fri, 27 Dec 2013 18:30:37 +0100
branchv_0
changeset 85b9b4e95240e1
parent 84 67468c75fba5
child 86 6b0eb3b22eb8
sql-dk startup shell script
scripts/sql-dk.sh
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scripts/sql-dk.sh	Fri Dec 27 18:30:37 2013 +0100
     1.3 @@ -0,0 +1,13 @@
     1.4 +#!/bin/bash
     1.5 +
     1.6 +# TODO: systemwide JAR location
     1.7 +JAR=~/projekty/SQL-DK/sql-dk/java/sql-dk/dist/sql-dk.jar;
     1.8 +
     1.9 +MAIN_CLASS="info.globalcode.sql.dk.CLIStarter";
    1.10 +CLASSPATH="$JAR:/usr/share/java/postgresql-jdbc4.jar";
    1.11 +
    1.12 +LOGGER="-Djava.util.logging.config.class=info.globalcode.sql.dk.logging.LoggerInitializer";
    1.13 +# LOG_LEVEL="FINE"; # SEVERE, WARNING, INFO, FINE, FINER, FINEST, ALL
    1.14 +[ -n "$LOG_LEVEL" ] && LOGGER_LEVEL="-Dinfo.globalcode.sql.dk.logging.LoggerInitializer.level=$LOG_LEVEL";
    1.15 +
    1.16 +java $LOGGER $LOGGER_LEVEL -cp $CLASSPATH $MAIN_CLASS "$@"