From 75b04349606196e737eda268c6af83ca0fb3bff4 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 19 Jan 2005 16:55:19 +0000 Subject: [PATCH] Added command line params to jtest rule git-svn-id: http://svn.osgeo.org/postgis/trunk@1326 b70326c6-7e19-0410-871a-916f4a2858ee --- jdbc2/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/jdbc2/Makefile b/jdbc2/Makefile index 53f3fa92c..a1e75c8f6 100644 --- a/jdbc2/Makefile +++ b/jdbc2/Makefile @@ -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 -- 2.40.0