From e0f257adea8da5b484c58d1eac275ec811d01446 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@hostsharing.net>
Date: Mon, 19 Dec 2011 15:10:37 +0100
Subject: [PATCH] ssl to database

---
 hsarback/build.xml |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/hsarback/build.xml b/hsarback/build.xml
index 0afc6fd..bb9f620 100644
--- a/hsarback/build.xml
+++ b/hsarback/build.xml
@@ -119,13 +119,13 @@
 		<sql
 			classpath="/usr/share/java/postgresql-jdbc3.jar"
 			driver="org.postgresql.Driver" 
-			url="jdbc:postgresql://localhost:5432/${database.name}"
+			url="jdbc:postgresql://${database.host}:5432/${database.name}"
 			userid="${database.user}" password="${database.password}" 
 			src="database/schema.sql" />		
 		<sql
 			classpath="/usr/share/java/postgresql-jdbc3.jar"
 			driver="org.postgresql.Driver" 
-			url="jdbc:postgresql://localhost:5432/${database.name}"
+			url="jdbc:postgresql://${database.host}:5432/${database.name}"
 			userid="${database.user}" password="${database.password}" 
 			src="database/data.sql" />		
 	</target>
@@ -134,9 +134,11 @@
 		<sql
 			classpath="/usr/share/java/postgresql-jdbc3.jar"
 			driver="org.postgresql.Driver" 
-			url="jdbc:postgresql://localhost:5432/${database.name}"
+			url="jdbc:postgresql://${database.host}:5432/${database.name}"
 			userid="${database.user}" password="${database.password}" 
-			src="database/dropschema.sql" />		
+			src="database/dropschema.sql">
+				<connectionProperty name="ssl" value="true" />
+		</sql>
 	</target>
 	
 	<target name="remote-test" description="inspection of xmlrpc-api" depends="compile-test">

--
Gitblit v1.9.3