Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
178961ad
Commit
178961ad
authored
23 years ago
by
Dave Cramer
Browse files
Options
Downloads
Patches
Plain Diff
now compiles clean with jdk 1.4
parent
2ea01da5
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/interfaces/jdbc/build.xml
+234
-207
234 additions, 207 deletions
src/interfaces/jdbc/build.xml
with
234 additions
and
207 deletions
src/interfaces/jdbc/build.xml
+
234
−
207
View file @
178961ad
...
...
@@ -4,7 +4,7 @@
build file to allow ant (http://jakarta.apache.org/ant/) to be used
to build the PostgreSQL JDBC Driver
$Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/build.xml,v 1.1
8
200
1
/0
9
/2
3
0
4:11:14 momjian
Exp $
$Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/build.xml,v 1.1
9
200
2
/0
2
/2
2
0
2:07:30 davec
Exp $
-->
...
...
@@ -19,7 +19,7 @@
<property
name=
"jardir"
value=
"jars"
/>
<property
name=
"builddir"
value=
"build"
/>
<property
name=
"package"
value=
"org/postgresql"
/>
<property
name=
"debug"
value=
"yes"
/>
<!--
This is a simpler method than utils.CheckVersion
...
...
@@ -30,8 +30,24 @@
Important: This must have the following order: jdbc1, jdbc2, enterprise
-->
<target
name=
"check_versions"
>
<available
property=
"jdk1.2+"
classname=
"java.lang.ThreadLocal"
/>
<available
property=
"jdk1.2e+"
classname=
"javax.sql.DataSource"
/>
<condition
property=
"jdbc1"
>
<equals
arg1=
"${ant.java.version}"
arg2=
"1.1"
/>
</condition>
<condition
property=
"jdbc2"
>
<or>
<equals
arg1=
"${ant.java.version}"
arg2=
"1.2"
/>
<equals
arg1=
"${ant.java.version}"
arg2=
"1.3"
/>
</or>
</condition>
<condition
property=
"jdbc3"
>
<equals
arg1=
"${ant.java.version}"
arg2=
"1.4"
/>
</condition>
<condition
property=
"datasource"
>
<and>
<equals
arg1=
"${jdbc2}"
arg2=
"true"
/>
<available
classname=
"javax.sql.DataSource"
/>
</and>
</condition>
<available
property=
"junit"
classname=
"junit.framework.Test"
/>
</target>
...
...
@@ -69,17 +85,17 @@
<!-- This is the core of the driver. It is common for all three versions. -->
<target
name=
"compile"
depends=
"prepare,check_versions,driver"
>
<javac
srcdir=
"${srcdir}"
destdir=
"${builddir}"
>
<javac
srcdir=
"${srcdir}"
destdir=
"${builddir}"
debug=
"${debug}"
>
<include
name=
"${package}/**"
/>
<exclude
name=
"${package}/jdbc1/**"
if=
"jdk1.2+"
/>
<exclude
name=
"${package}/jdbc2/**"
unless=
"jd
k1.2+"
/>
<exclude
name=
"${package}/jdbc1/**"
unless=
"jdbc1"
/>
<exclude
name=
"${package}/jdbc2/**"
unless=
"jd
bc2"
/>
<exclude
name=
"${package}/largeobject/PGblob.java"
unless=
"jd
k1.2+
"
/>
<exclude
name=
"${package}/largeobject/PGclob.java"
unless=
"jd
k1.2+
"
/>
<exclude
name=
"${package}/largeobject/PGblob.java"
unless=
"jd
bc2
"
/>
<exclude
name=
"${package}/largeobject/PGclob.java"
unless=
"jd
bc2
"
/>
<exclude
name=
"${package}/PostgresqlDataSource.java"
unless=
"
jdk1.2e+
"
/>
<exclude
name=
"${package}/xa/**"
unless=
"
jdk1.2e+
"
/>
<exclude
name=
"${package}/PostgresqlDataSource.java"
unless=
"
datasource
"
/>
<exclude
name=
"${package}/xa/**"
unless=
"
datasource
"
/>
<exclude
name=
"${package}/test/**"
unless=
"junit"
/>
</javac>
...
...
@@ -93,9 +109,20 @@
<target
name=
"driver"
depends=
"prepare,check_versions"
>
<!-- determine the edition text -->
<property
name=
"edition"
value=
"JDBC1"
/>
<available
property=
"edition"
value=
"JDBC2"
classname=
"java.lang.ThreadLocal"
/>
<available
property=
"edition"
value=
"JDBC2"
classname=
"java.lang.StrictMath"
/>
<available
property=
"edition"
value=
"JDBC2 Enterprise"
classname=
"javax.sql.DataSource"
/>
<condition
property=
"edition"
value=
"JDBC2"
>
<or>
<equals
arg1=
"${jdbc2}"
arg2=
"true"
/>
<equals
arg1=
"${jdbc3}"
arg2=
"true"
/>
<!-- fake it for now -->
</or>
</condition>
<condition
property=
"edition"
value=
"JDBC2 Enterprise"
>
<and>
<available
classname=
"javax.sql.DataSource"
/>
<equals
arg1=
"${jdbc2}"
arg2=
"true"
/>
</and>
</condition>
<!-- determine the connection class -->
<property
name=
"connectclass"
value=
"org.postgresql.jdbc1.Connection"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment