patch: fix 'compile' target to do correct dependency checking
patch: fix 'compile' target to do correct dependency checking
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
Re: patch: fix 'compile' target to do correct dependency checking
От:
Barry Lind <blind@xythos.com>
Дата:
Patch applied and tested against jdk1.2 and 1.3. thanks, --Barry Oliver Jowett wrote: > 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 > > > ------------------------------------------------------------------------ > > Index: src/interfaces/jdbc/build.xml > =================================================================== > RCS file: /projects/cvsroot/pgsql-server/src/interfaces/jdbc/build.xml,v > retrieving revision 1.35 > diff -u -c -r1.35 build.xml > *** src/interfaces/jdbc/build.xml 11 Aug 2003 23:42:04 -0000 1.35 > --- src/interfaces/jdbc/build.xml 17 Aug 2003 01:27:39 -0000 > *************** > *** 108,126 **** > > > > - > > > ! > > ! > ! > ! > > ! > ! > > ! > > > > --- 108,147 ---- > > > > > > ! > ! > ! > ! > ! > ! > ! > > ! > > ! > ! > ! > ! > ! > ! > ! > ! > ! > ! > ! > ! > ! > > > > > > ------------------------------------------------------------------------ > > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match