#$/bin/bash

if [ -f ./abalib.jar_temp ]
then
   echo "deleting temp file ..."
   rm abalib.jar_temp
fi

# Mac: export CLASSPATH="/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries"
#Mac: export DC_JARS="/Users/abacus/Desktop/abaguibuilder-1.5/bin"
export DC_JARS="."
export CLASSPATH=$CLASSPATH:$DC_JARS/abalib.jar
export CLASSPATH=$CLASSPATH:$DC_JARS/abadc.jar
export CLASSPATH=$CLASSPATH:$DC_JARS/EXML.jar
export CLASSPATH=$CLASSPATH:$DC_JARS/cf.jar
export CLASSPATH=$CLASSPATH:$DC_JARS/cbeans.jar
export CLASSPATH=$CLASSPATH:$DC_JARS/cutils.jar
export CLASSPATH=$CLASSPATH:$DC_JARS/ozten.jar
export CLASSPATH=$CLASSPATH:$DC_JARS/rowset.jar
export CLASSPATH=$CLASSPATH:$DC_JARS/swingset-bin_0.7.0_beta.jar
export CLASSPATH=$CLASSPATH:$DC_JARS/mysql-connector-3.0.14.jar
export CLASSPATH=$CLASSPATH:$DC_JARS/janino.jar
export CLASSPATH=$CLASSPATH:.

java ch.abacus.designcockpit.metadataEditor.MetadataEditor

if [ -f ./abalib.jar_temp ]
then
   echo "New Jar file found coping ..."
   cp abalib.jar_temp abalib.jar
   rm abalib.jar_temp
fi

