+ - Finished build.xml and updated Driver.java.in and buildDriver to
+ match how Makefile and ANT operate.
+
- Finally created ant build.xml file
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 $
-->
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ tofile="${package}/Driver.java"
+ filtering="yes" />
+
+
-
+
+
+
+
+
+
+
- check_versions">
+ prepare,check_versions,driver">
- Blob.java" unless="jdk1.2+" />
+ blob.java" unless="jdk1.2+" />
-
+ overwrite="true" filtering="on">
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) {
*/
public int getMajorVersion()
{
- return %MAJORVERSION%;
+ return @MAJORVERSION@;
}
/**
*/
public int getMinorVersion()
{
- return %MINORVERSION%;
+ return @MINORVERSION@;
}
/**
*/
public static String getVersion()
{
- return "%VERSION%";
+ return "@VERSION@";
}
/**
#!/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
#---------------------------------------------------------------------------
# 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
#---------------------------------------------------------------------------