Postgres-Update auf 8.4, Deploy-Target

This commit is contained in:
Peter Hormanns 2011-05-05 14:29:06 +00:00
parent 0fbca09215
commit a63757a5f4

View File

@ -33,6 +33,10 @@
<delete dir="${dist.home}" /> <delete dir="${dist.home}" />
</target> </target>
<target name="deploy" depends="war">
<copy file="build/hsar.war" todir="${hsar.deploy.dir}" />
</target>
<target name="war" depends="enhance"> <target name="war" depends="enhance">
<war destfile="build/hsar.war" basedir="webapp"> <war destfile="build/hsar.war" basedir="webapp">
<lib dir="lib"> <lib dir="lib">
@ -74,13 +78,13 @@
<target name="init-db" description="init empty database"> <target name="init-db" description="init empty database">
<sql <sql
classpath="/usr/share/java/postgresql-jdbc3-8.2.jar" classpath="/usr/share/java/postgresql-jdbc3.jar"
driver="org.postgresql.Driver" driver="org.postgresql.Driver"
url="jdbc:postgresql://localhost:5432/${database.name}" url="jdbc:postgresql://localhost:5432/${database.name}"
userid="${database.user}" password="${database.password}" userid="${database.user}" password="${database.password}"
src="database/schema.sql" /> src="database/schema.sql" />
<sql <sql
classpath="/usr/share/java/postgresql-jdbc3-8.2.jar" classpath="/usr/share/java/postgresql-jdbc3.jar"
driver="org.postgresql.Driver" driver="org.postgresql.Driver"
url="jdbc:postgresql://localhost:5432/${database.name}" url="jdbc:postgresql://localhost:5432/${database.name}"
userid="${database.user}" password="${database.password}" userid="${database.user}" password="${database.password}"
@ -89,7 +93,7 @@
<target name="drop-db" description="make empty database"> <target name="drop-db" description="make empty database">
<sql <sql
classpath="/usr/share/java/postgresql-jdbc3-8.2.jar" classpath="/usr/share/java/postgresql-jdbc3.jar"
driver="org.postgresql.Driver" driver="org.postgresql.Driver"
url="jdbc:postgresql://localhost:5432/${database.name}" url="jdbc:postgresql://localhost:5432/${database.name}"
userid="${database.user}" password="${database.password}" userid="${database.user}" password="${database.password}"