#!/bin/csh
#----------------------------------------------------------------
#                          REVISION HISTORY
#----------------------------------------------------------------
#  MOD             PR
# LEVEL   DATE   NUMBER  User       Description
# ----- -------- ------  ------     -----------------------------
#  000  04/08/02 44740   WMiller    Initial code
#----------------------------------------------------------------
#---------------------
# define exit statuses
#--------------------- 
set EXIT_SUCCESS = 0
set EXIT_ERROR = 1
#
#---------------------
# check arguments
#--------------------- 
if ($#argv < 1) then
   echo Bad argument count. Usage: db_test.csh properties_file
   exit $EXIT_ERROR
endif
#
#-------------------------------------------------
# point to needed jar files and invoke application
#-------------------------------------------------
set jardir = `osfile_stretch_file SOGS_DISK:/bin/java`
set jarfiles = ${jardir}/DB.jar:${jardir}/JOPUS.jar
java -classpath ${jarfiles} OPUS/DB/SybaseConnection $1
#
#-----------------------------
# exit with appropriate status
#-----------------------------
if ($status != 0) then
  exit $EXIT_ERROR
endif
exit $EXIT_SUCCESS
