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
4
Important: This must have the following order: jdbc1, jdbc2, jdbc3
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"/>
14
<equals arg1="${ant.java.version}" arg2="1.4"/>
15
<equals arg1="${ant.java.version}" arg2="1.5"/>
19
<available property="datasource" classname="javax.sql.DataSource"/>
20
- <available property="ssl" classname="javax.net.ssl.SSLSocketFactory"/>
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">
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" />
34
- <javac classpath="${srcdir}" srcdir="${srcdir}" destdir="${builddir}" debug="${debug}">
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/**" />