#!/bin/sh

# Script to launch the command line interface for DbVisualizer

DBVIS_HOME=`dirname $0`
JAVA_EXEC=java

CP="$DBVIS_HOME/resources"
CP="$CP:$DBVIS_HOME/lib/alloy.jar"
CP="$CP:$DBVIS_HOME/lib/AppleJavaExtensions.jar"
CP="$CP:$DBVIS_HOME/lib/batik.jar"
CP="$CP:$DBVIS_HOME/lib/commons-lang.jar"
CP="$CP:$DBVIS_HOME/lib/dbvis.jar"
CP="$CP:$DBVIS_HOME/lib/forms.jar"
CP="$CP:$DBVIS_HOME/lib/graphml.jar"
CP="$CP:$DBVIS_HOME/lib/icepdf-core.jar"
CP="$CP:$DBVIS_HOME/lib/icepdf-viewer.jar"
CP="$CP:$DBVIS_HOME/lib/jai-imageio.jar"
CP="$CP:$DBVIS_HOME/lib/jcchart.jar"
CP="$CP:$DBVIS_HOME/lib/jdom.jar"
CP="$CP:$DBVIS_HOME/lib/jide.jar"
CP="$CP:$DBVIS_HOME/lib/log4j.jar"
CP="$CP:$DBVIS_HOME/lib/nb-editor.jar"
CP="$CP:$DBVIS_HOME/lib/ognl.jar"
CP="$CP:$DBVIS_HOME/lib/openide-util.jar"
CP="$CP:$DBVIS_HOME/lib/poi.jar"
CP="$CP:$DBVIS_HOME/lib/vectorgraphics.jar"
CP="$CP:$DBVIS_HOME/lib/yexport.jar"
CP="$CP:$DBVIS_HOME/lib/yFiles.jar"
CP="$CP:$DBVIS_HOME/lib/ysvg.jar"

$JAVA_EXEC -Xmx256M -Djava.awt.headless=true -cp $CP -Ddbvis.home=$DBVIS_HOME com.onseven.dbvis.DbVisualizerCmd "$@"
