franta-hg@85: #!/bin/bash franta-hg@85: franta-hg@85: # TODO: systemwide JAR location franta-hg@85: JAR=~/projekty/SQL-DK/sql-dk/java/sql-dk/dist/sql-dk.jar; franta-hg@85: franta-hg@85: MAIN_CLASS="info.globalcode.sql.dk.CLIStarter"; franta-hg@85: CLASSPATH="$JAR:/usr/share/java/postgresql-jdbc4.jar"; franta-hg@85: franta-hg@85: LOGGER="-Djava.util.logging.config.class=info.globalcode.sql.dk.logging.LoggerInitializer"; franta-hg@85: # LOG_LEVEL="FINE"; # SEVERE, WARNING, INFO, FINE, FINER, FINEST, ALL franta-hg@85: [ -n "$LOG_LEVEL" ] && LOGGER_LEVEL="-Dinfo.globalcode.sql.dk.logging.LoggerInitializer.level=$LOG_LEVEL"; franta-hg@85: franta-hg@85: java $LOGGER $LOGGER_LEVEL -cp $CLASSPATH $MAIN_CLASS "$@"