From: Peter Mount Date: Wed, 20 Dec 2000 16:22:49 +0000 (+0000) Subject: Finished build.xml and updated Driver.java.in and buildDriver to match how Makefile... X-Git-Tag: REL9_0_0~21815 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=751959436cf643aa380fa49964834b7c3de3e59c;p=pg-rex%2Fsyncrep.git Finished build.xml and updated Driver.java.in and buildDriver to match how Makefile and ANT operate. --- diff --git a/src/interfaces/jdbc/CHANGELOG b/src/interfaces/jdbc/CHANGELOG index 976efe1734..6afd3c6f25 100644 --- a/src/interfaces/jdbc/CHANGELOG +++ b/src/interfaces/jdbc/CHANGELOG @@ -1,3 +1,7 @@ +Wed Dec 20 16:19:00 GMT 2000 peter@retep.org.uk + - Finished build.xml and updated Driver.java.in and buildDriver to + match how Makefile and ANT operate. + Tue Dec 19 17:30:00 GMT 2000 peter@retep.org.uk - Finally created ant build.xml file diff --git a/src/interfaces/jdbc/build.xml b/src/interfaces/jdbc/build.xml index b60f2bdcf7..1e15b38520 100644 --- a/src/interfaces/jdbc/build.xml +++ b/src/interfaces/jdbc/build.xml @@ -3,17 +3,18 @@ build file to allow ant (http://jakarta.apache.org/ant/) to be used to build the PostgreSQL JDBC Driver. - $Id: build.xml,v 1.1 2000/12/19 17:33:39 peter Exp $ + $Id: build.xml,v 1.2 2000/12/20 16:22:48 peter Exp $ --> - + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + - + - + - + diff --git a/src/interfaces/jdbc/org/postgresql/Driver.java.in b/src/interfaces/jdbc/org/postgresql/Driver.java.in index 40e2a94956..552d188109 100644 --- a/src/interfaces/jdbc/org/postgresql/Driver.java.in +++ b/src/interfaces/jdbc/org/postgresql/Driver.java.in @@ -114,7 +114,7 @@ public class Driver implements java.sql.Driver return null; try { - org.postgresql.Connection con = (org.postgresql.Connection)(Class.forName("%JDBCCONNECTCLASS%").newInstance()); + org.postgresql.Connection con = (org.postgresql.Connection)(Class.forName("@JDBCCONNECTCLASS@").newInstance()); con.openConnection (host(), port(), props, database(), url, this); return (java.sql.Connection)con; } catch(ClassNotFoundException ex) { @@ -192,7 +192,7 @@ public class Driver implements java.sql.Driver */ public int getMajorVersion() { - return %MAJORVERSION%; + return @MAJORVERSION@; } /** @@ -202,7 +202,7 @@ public class Driver implements java.sql.Driver */ public int getMinorVersion() { - return %MINORVERSION%; + return @MINORVERSION@; } /** @@ -210,7 +210,7 @@ public class Driver implements java.sql.Driver */ public static String getVersion() { - return "%VERSION%"; + return "@VERSION@"; } /** diff --git a/src/interfaces/jdbc/utils/buildDriver b/src/interfaces/jdbc/utils/buildDriver index 097ce6e04a..8cca1d9c36 100755 --- a/src/interfaces/jdbc/utils/buildDriver +++ b/src/interfaces/jdbc/utils/buildDriver @@ -1,6 +1,6 @@ #!/bin/sh # -# $Id: buildDriver,v 1.1 2000/10/12 08:55:28 peter Exp $ +# $Id: buildDriver,v 1.2 2000/12/20 16:22:49 peter Exp $ # # This script generates the org/postgresql/Driver.java file from the template # org/postgresql/Driver.java.in @@ -38,10 +38,10 @@ MINORVERSION=`echo $VERSION | cut -f2 -d'.' | cut -c1` #--------------------------------------------------------------------------- # Now finally build the driver sed \ - -e "s/%JDBCCONNECTCLASS%/$CLASS/g" \ - -e "s/%VERSION%/$VERSION $EDITION/g" \ - -e "s/%MAJORVERSION%/$MAJORVERSION/g" \ - -e "s/%MINORVERSION%/$MINORVERSION/g" \ + -e "s/@JDBCCONNECTCLASS@/$CLASS/g" \ + -e "s/@VERSION@/$VERSION $EDITION/g" \ + -e "s/@MAJORVERSION@/$MAJORVERSION/g" \ + -e "s/@MINORVERSION@/$MINORVERSION/g" \ <${SOURCE}.in \ >$SOURCE #---------------------------------------------------------------------------