]> granicus.if.org Git - postgis/commitdiff
Added command line params to jtest rule
authorSandro Santilli <strk@keybit.net>
Wed, 19 Jan 2005 16:55:19 +0000 (16:55 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 19 Jan 2005 16:55:19 +0000 (16:55 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1326 b70326c6-7e19-0410-871a-916f4a2858ee

jdbc2/Makefile

index 53f3fa92cf5e3b23f5c8c6b7b376ff3604e919e0..a1e75c8f667b75bd64e92c3ec911371ed0fcc821 100644 (file)
@@ -11,11 +11,16 @@ DELETE = rm -rvf
 
 #CP=src/:../../../src/interfaces/jdbc/jars/postgresql.jar
 #CP=src/:lib/postgresql-8.0.309.jdbc3.jar
-CP="$(CLASSPATH):src/:/usr/share/java/postgresql.jar"
+CP=$(CLASSPATH):src/:/usr/share/java/postgresql.jar
 
 SRCDIR=src
 EXAMPLES=examples
 BUILD=bin/make
+PGHOST?=localhost
+PGPORT?=5432
+PGDATABASE?=jdbc_test
+PGUSER?=psql
+PGPASS?=guess
 
 SRC= $(SRCDIR)/examples/Test.java \
                $(SRCDIR)/examples/TestParser.java \
@@ -56,7 +61,7 @@ test: compile
        $(JAVA) -classpath $(BUILD):$(CP) $(EXAMPLES)/Test
         
 jtest: compile
-       $(JAVA) -classpath $(BUILD):$(CP) $(EXAMPLES)/TestServer
+       $(JAVA) -classpath $(BUILD):$(CP) $(EXAMPLES)/TestServer jdbc:postgresql://$(PGHOST):$(PGPORT)/$(PGDATABASE) $(PGUSER) $(PGPASS)
 
 ptestoffline: compile  
        $(JAVA) -classpath $(BUILD):$(CP) $(EXAMPLES)/TestParser offline