~ubuntu-branches/ubuntu/gutsy/libpgjava/gutsy

« back to all changes in this revision

Viewing changes to debian/patches/03_BuildXml.patch

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2005-04-21 14:25:11 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050421142511-wibh5vc31fkrorx7
Tags: 7.4.7-3
Built with sources...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- src/interfaces/jdbc/build.xml.orig  2005-04-03 14:56:00.000000000 +0200
 
2
+++ src/interfaces/jdbc/build.xml       2005-04-03 14:55:14.000000000 +0200
 
3
@@ -34,6 +34,9 @@
 
4
     Important: This must have the following order: jdbc1, jdbc2, jdbc3
 
5
   -->
 
6
   <target name="check_versions">
 
7
+   <!-- Comment out so no jdbc decision is done - this way
 
8
+        we can set JDBC Specification directly during build with
 
9
+        -Djdbc2=true or -Djdbc3=true
 
10
     <condition property="jdbc1">
 
11
       <equals arg1="${ant.java.version}" arg2="1.1"/>
 
12
     </condition>
 
13
@@ -48,9 +51,13 @@
 
14
         <equals arg1="${ant.java.version}" arg2="1.4"/>
 
15
        <equals arg1="${ant.java.version}" arg2="1.5"/>
 
16
       </or>
 
17
-    </condition>
 
18
+    </condition>-->
 
19
     <available property="datasource" classname="javax.sql.DataSource"/>
 
20
-    <available property="ssl" classname="javax.net.ssl.SSLSocketFactory"/>
 
21
+    
 
22
+    <!-- Comment out so no SSL decision is done - this way
 
23
+        we can request SSL inclusion during build explicit with 
 
24
+        -Dssl=true (for no SSL support just don't set -Dsss to anything)    
 
25
+    <available property="ssl" classname="javax.net.ssl.SSLSocketFactory"/>-->  
 
26
     <available property="junit" classname="junit.framework.Test"/>
 
27
     <available property="junit.task" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>
 
28
     <condition property="jdbc2tests">
 
29
@@ -115,8 +122,9 @@
 
30
 
 
31
     <available classname="org.postgresql.Driver" property="old.driver.present" />
 
32
     <fail message="Old driver was detected on classpath or in jre/lib/ext, please remove and try again." if="old.driver.present" />
 
33
-
 
34
-    <javac classpath="${srcdir}" srcdir="${srcdir}" destdir="${builddir}" debug="${debug}">
 
35
+    
 
36
+    <!-- Include target flag for explicit specification of target 1.3 or 1.4 (JDBC2 = 1.3 / JDBC3 = 1.4) -->
 
37
+    <javac classpath="${srcdir}" srcdir="${srcdir}" destdir="${builddir}" debug="${debug}" target="${target}">
 
38
       <!-- This is the core of the driver.  It is common for all three versions. -->
 
39
        <include name="${package}/*.java" />
 
40
        <include name="${package}/core/**" />