From 42d26fb9f778819d9687208621e93b1499465422 Mon Sep 17 00:00:00 2001 From: Peter Mount Date: Tue, 19 Dec 2000 17:33:39 +0000 Subject: [PATCH] Finally created ant build.xml file --- src/interfaces/jdbc/CHANGELOG | 3 ++ src/interfaces/jdbc/build.xml | 59 +++++++++++++++++++++++++++++ src/interfaces/jdbc/utils/CheckVersion.java | 12 +++--- 3 files changed, 68 insertions(+), 6 deletions(-) create mode 100644 src/interfaces/jdbc/build.xml diff --git a/src/interfaces/jdbc/CHANGELOG b/src/interfaces/jdbc/CHANGELOG index 6d99f9c238..976efe1734 100644 --- a/src/interfaces/jdbc/CHANGELOG +++ b/src/interfaces/jdbc/CHANGELOG @@ -1,3 +1,6 @@ +Tue Dec 19 17:30:00 GMT 2000 peter@retep.org.uk + - Finally created ant build.xml file + Mon Nov 20 08:12:00 GMT 2000 peter@retep.org.uk - Encoding patch to Connection by wrobell@posexperts.com.pl diff --git a/src/interfaces/jdbc/build.xml b/src/interfaces/jdbc/build.xml new file mode 100644 index 0000000000..b60f2bdcf7 --- /dev/null +++ b/src/interfaces/jdbc/build.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/interfaces/jdbc/utils/CheckVersion.java b/src/interfaces/jdbc/utils/CheckVersion.java index b82ba335fd..8832543e72 100644 --- a/src/interfaces/jdbc/utils/CheckVersion.java +++ b/src/interfaces/jdbc/utils/CheckVersion.java @@ -41,12 +41,14 @@ public class CheckVersion { String vmversion = System.getProperty("java.vm.version"); + System.out.println("postgresql.jdbc="+System.getProperty("postgresql.jdbc")); + // We are running a 1.1 JVM if(vmversion.startsWith("1.1")) { System.out.println("jdbc1"); - System.exit(0); + //System.exit(0); } - + else // We are running a 1.2 or 1.3 JVM if(vmversion.startsWith("1.2") || vmversion.startsWith("1.3") || @@ -59,10 +61,8 @@ public class CheckVersion System.out.println("enterprise"); else System.out.println("jdbc2"); - System.exit(0); + //System.exit(0); } - - System.out.println("huho"); - System.exit(0); + System.setProperty("postgresql.jdbc","yoyo"); } } -- 2.11.0