Finished build.xml and updated Driver.java.in and buildDriver to match how Makefile...
authorPeter Mount
Wed, 20 Dec 2000 16:22:49 +0000 (16:22 +0000)
committerPeter Mount
Wed, 20 Dec 2000 16:22:49 +0000 (16:22 +0000)
src/interfaces/jdbc/CHANGELOG
src/interfaces/jdbc/build.xml
src/interfaces/jdbc/org/postgresql/Driver.java.in
src/interfaces/jdbc/utils/buildDriver

index 976efe17348d91a2671df50175d4e674af8c735b..6afd3c6f251887a4e98e3f668c45ba09583d2bb1 100644 (file)
@@ -1,3 +1,7 @@
+Wed Dec 20 16:19:00 GMT 2000 [email protected]
+   - 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 [email protected]
    - Finally created ant build.xml file
 
index b60f2bdcf7d24e7d5261f5833e2d3f1462c9df54..1e15b3852020f472ac8b71cd0cea3cea06ba7119 100644 (file)
@@ -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 $
 
 -->
 
 
   
-  
   
   
   
   
+  
+  
   
   
+  
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+            
+    
+    
+    
+    
+    
+        
+    
+    
+    
+    
+          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">
       
         
       
index 40e2a94956ae3e5856f3d86c963448628925c105..552d188109a4314c37913db809754975c7532117 100644 (file)
@@ -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@";
     }
     
   /**
index 097ce6e04ad54e5a03e5b87ed43affda40dd824c..8cca1d9c36d1a0085af4c00d9f9c20429acf5dcb 100755 (executable)
@@ -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
 #---------------------------------------------------------------------------