awips2/nativeLib/ohd.raxdb/scripts/run_raxdb_jdbgen
root 377dcd10b9 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 9f19e3f712 [formerly 9f19e3f712 [formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]
Former-commit-id: 06a8b51d6d
Former-commit-id: 3360eb6c5f
2012-01-06 08:55:05 -06:00

35 lines
970 B
Bash

#!/bin/ksh
export DRIVERPATH=/usr/lib/postgresql-8.2-506.jdbc3.jar
export RUN_FROM_DIR=`dirname $0`
export PROJECTS_DIR=$RUN_FROM_DIR/../..
export RAXDB_DIR=$PROJECTS_DIR/raxdb
export DB_DIR=$PROJECTS_DIR/db
export BASEPATH=$DB_DIR/classes
export CLASSPATH=./:$BASEPATH/:$DRIVERPATH
echo "CLASSPATH =" $CLASSPATH
#db name
dbname=adb_ob83empty
#The connection string
connecturl="jdbc:postgresql://genessee:5432/$dbname?user=pguser"
#The location of the PreferredTableNames.txt file.
namingfile=$RAXDB_DIR/scripts/CustomPreferredTableNames.txt
#The destination of the generated source files
targetdir=$RAXDB_DIR/src/ohd/hseb/raxdb/generated
#package name -- NONE means no packaging
# Note: this does NOT affect directly in which the generated class is placed
package=ohd.hseb.raxdb.generated
db_driver_class_name=org.postgresql.Driver
$JAVADIR/bin/java ohd.hseb.dbgen.JDbGen $connecturl $namingfile $dbname $package $targetdir $db_driver_class_name
return $?