Skip to content

Commit ebbdb1b

Browse files
committed
Add the proper META-INF entry for the driver jar file so that
JDBC4 applications no longer have to say Class.forName() as the driver gets loaded automatically.
1 parent e84c976 commit ebbdb1b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

META-INF/services/java.sql.Driver

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.postgresql.Driver

build.xml

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
This file now requires Ant 1.4.1. 2002-04-18
1010
11-
$PostgreSQL: pgjdbc/build.xml,v 1.73 2007/04/16 23:52:50 jurka Exp $
11+
$PostgreSQL: pgjdbc/build.xml,v 1.74 2007/04/24 18:19:02 jurka Exp $
1212
1313
-->
1414

@@ -109,6 +109,9 @@
109109
<fileset dir="${srcdir}">
110110
<include name="${package}/translation/*.class" />
111111
</fileset>
112+
113+
<metainf dir="META-INF">
114+
</metainf>
112115
</jar>
113116
</target>
114117

0 commit comments

Comments
 (0)