awips2/javaUtilities/hydro/ohd.ihfsdb/generate.xml
Bryan Kowal 7edecdb7dd Issue #2021 - relocate all Java hydro projects from nativeLib to a sub-directory within javaUtilities
Former-commit-id: e673c5c553 [formerly c407dd8623] [formerly e673c5c553 [formerly c407dd8623] [formerly 3d885c7a60 [formerly 360e0f61f8580cfca1e8dd307e920e9e0150016d]]]
Former-commit-id: 3d885c7a60
Former-commit-id: 5a4726bdc2 [formerly 5f637cc57b]
Former-commit-id: 2050dec254
2013-06-03 11:05:21 -05:00

37 lines
No EOL
1.3 KiB
XML

<?xml version="1.0" ?>
<project name="ihfsdb" default="runJDbGen" basedir=".">
<property name="dist" value="dist" />
<property name="src" value="src" />
<property name="db.mach.name" value="localhost" />
<property name="database" value="hd_ob83oax" />
<target name="runJDbGen" depends="prepare">
<java failonerror="yes" classname="ohd.hseb.dbgen.JDbGen"
classpath="$CLASSPATH:${basedir}/../ohd.db/classes">
<classpath>
<pathelement location="./classes"/>
<pathelement path="${basedir}/REQUIRED_JARS/postgresql-8.3-603.jdbc3.jar"/>
</classpath>
<arg value="jdbc:postgresql://${db.mach.name}:5432/${database}?user=awips"/> <!-- connectionURL -->
<arg value="${basedir}/PreferredTableNames.txt"/> <!--preferredTableNameFilePath -->
<arg value="${database}"/> <!-- dbName -->
<arg value="ohd.hseb.ihfsdb.generated"/> <!-- packageName -->
<arg value="${basedir}/src/ohd/hseb/ihfsdb/generated"/> <!-- targetDir -->
<arg value="org.postgresql.Driver"/> <!-- driverClassName -->
</java>
</target>
<target name="prepare">
<mkdir dir="${basedir}/src/ohd/hseb/ihfsdb/generated" />
</target>
<target name="clean">
<delete dir="${basedir}/src/ohd/hseb/ihfsdb/generated"
includeemptydirs="true"
verbose="true">
<fileset dir="${basedir}/src/ohd"
includes="**/*" />
</delete>
<delete dir="${basedir}/classes"></delete>
</target>
</project>