author | František Kučera <franta-hg@frantovo.cz> |
Wed, 01 Jan 2014 02:56:08 +0100 | |
branch | v_0 |
changeset 108 | d06d90b28217 |
parent 102 | ff47349e24bf |
child 111 | 259c0c64321b |
permissions | -rwxr-xr-x |
franta-hg@85 | 1 |
#!/bin/bash |
franta-hg@85 | 2 |
|
franta-hg@102 | 3 |
if [ -f ~/.sql-dk/environment.sh ]; then # .sql-dk must match with DIR in Constants.java |
franta-hg@102 | 4 |
. ~/.sql-dk/environment.sh |
franta-hg@102 | 5 |
fi |
franta-hg@102 | 6 |
|
franta-hg@85 | 7 |
# TODO: systemwide JAR location |
franta-hg@85 | 8 |
JAR=~/projekty/SQL-DK/sql-dk/java/sql-dk/dist/sql-dk.jar; |
franta-hg@85 | 9 |
|
franta-hg@85 | 10 |
MAIN_CLASS="info.globalcode.sql.dk.CLIStarter"; |
franta-hg@85 | 11 |
CLASSPATH="$JAR:/usr/share/java/postgresql-jdbc4.jar"; |
franta-hg@85 | 12 |
|
franta-hg@85 | 13 |
LOGGER="-Djava.util.logging.config.class=info.globalcode.sql.dk.logging.LoggerInitializer"; |
franta-hg@85 | 14 |
# LOG_LEVEL="FINE"; # SEVERE, WARNING, INFO, FINE, FINER, FINEST, ALL |
franta-hg@85 | 15 |
[ -n "$LOG_LEVEL" ] && LOGGER_LEVEL="-Dinfo.globalcode.sql.dk.logging.LoggerInitializer.level=$LOG_LEVEL"; |
franta-hg@85 | 16 |
|
franta-hg@85 | 17 |
java $LOGGER $LOGGER_LEVEL -cp $CLASSPATH $MAIN_CLASS "$@" |