patch: fix 'compile' target to do correct dependency checking

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: patch: fix 'compile' target to do correct dependency checking
Date: 2003-08-17 01:54:20
Message-ID: 20030817015420.GC17855@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

This patch ensures that the 'compile' target includes all the source files
needed for the build so that Ant's dependency checking works correctly.
I've only tested against JDK1.4 / JDBC3 but it should work for other builds
(all going well).

Without this patch, only the jdbcN subpackage corresponding to the exact
JDBC version the driver is configured for is included in the source file
set. Changes to abstract classes in other subpackages (for example,
jdbc1.AbstractJdbc1Statement with a JDBC2 or JDBC3 build) will be missed by
ant's dependency check and the classes may not be rebuilt.

This only bites dependency checking, not clean builds, as the "missing"
source files are automatically located and built by the compiler when
referenced by other, included, classes.

-O

Attachment Content-Type Size
pgsql-ant_dependency_fix.txt text/plain 2.8 KB

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Palle Girgensohn 2003-08-17 13:57:16 Re: Bug #926: if old postgresql.jar in CLASSPATH, ant fails
Previous Message Bruce Momjian 2003-08-16 20:54:56 Re: Bug #926: if old postgresql.jar in CLASSPATH, ant fails