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
42d26fb9
Commit
42d26fb9
authored
24 years ago
by
Peter Mount
Browse files
Options
Downloads
Patches
Plain Diff
Finally created ant build.xml file
parent
e34d442d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/interfaces/jdbc/CHANGELOG
+3
-0
3 additions, 0 deletions
src/interfaces/jdbc/CHANGELOG
src/interfaces/jdbc/build.xml
+59
-0
59 additions, 0 deletions
src/interfaces/jdbc/build.xml
src/interfaces/jdbc/utils/CheckVersion.java
+6
-6
6 additions, 6 deletions
src/interfaces/jdbc/utils/CheckVersion.java
with
68 additions
and
6 deletions
src/interfaces/jdbc/CHANGELOG
+
3
−
0
View file @
42d26fb9
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
...
...
This diff is collapsed.
Click to expand it.
src/interfaces/jdbc/build.xml
0 → 100644
+
59
−
0
View file @
42d26fb9
<!--
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 $
-->
<project
name=
"postgresqlJDBC"
default=
"jar"
basedir=
"."
>
<!-- set global properties for this build -->
<property
name=
"src"
value=
"."
/>
<property
name=
"dest"
value=
"build"
/>
<property
name=
"package"
value=
"org/postgresql"
/>
<!--
This is a simpler method than utils.CheckVersion
It defaults to jdbc1, but builds jdbc2 if the java.lang.Byte class is
in the CLASSPATH (ie JDK1.2 or later), and then enterprise if the
javax.sql.DataSource class is present.
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.3+"
classname=
"java.lang.StrictMath"
/>
<available
property=
"jdk1.2e+"
classname=
"javax.sql.DataSource"
/>
<mkdir
dir=
"${dest}"
/>
</target>
<target
name=
"clean"
>
<delete
dir=
"${dest}"
/>
</target>
<!-- This is the core of the driver. It is common for all three versions -->
<target
name=
"compile"
depends=
"check_versions"
>
<javac
srcdir=
"${src}"
destdir=
"${dest}"
>
<include
name=
"${package}/**"
/>
<exclude
name=
"${package}/jdbc1/**"
if=
"jdk1.2+"
/>
<exclude
name=
"${package}/jdbc2/**"
unless=
"jdk1.2+"
/>
<exclude
name=
"${package}/largeobject/PGBlob.java"
unless=
"jdk1.2+"
/>
<exclude
name=
"${package}/PostgresqlDataSource.java"
unless=
"jdk1.2e+"
/>
<exclude
name=
"${package}/xa/**"
unless=
"jdk1.2e+"
/>
</javac>
<copy
todir=
"${dest}"
>
<fileset
dir=
"${src}"
>
<include
name=
"**/*.properties"
/>
</fileset>
</copy>
</target>
<target
name=
"jar"
depends=
"compile"
>
<jar
jarfile=
"postgresql.jar"
basedir=
"${dest}"
includes=
"org/**"
/>
</target>
</project>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/interfaces/jdbc/utils/CheckVersion.java
+
6
−
6
View file @
42d26fb9
...
...
@@ -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"
);
}
}
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