The following ANT patch prevents the JAR file from containing non-class
files. I was occasionally getting the 'tags' file in the jar file,
which clearly is wrong, and made the JAR file 20mb instead of 80k.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
? build
? jars
? org/postgresql/Driver.java
Index: build.xml
===================================================================
RCS file: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/jdbc/build.xml,v
retrieving revision 1.12
diff -c -r1.12 build.xml
*** build.xml 2001/05/19 02:48:54 1.12
--- build.xml 2001/05/23 19:27:38
***************
*** 139,146 ****
<!-- This builds the jar file containing the driver -->
<target name="jar" depends="compile,examples">
! <jar jarfile="${jars}/postgresql.jar" basedir="${dest}" includes="${package}/**"
excludes="${package}/test/**,${package}/*.properties"/>
! <jar jarfile="${jars}/postgresql-examples.jar" basedir="${dest}" includes="example/**" />
</target>
<!--
--- 139,146 ----
<!-- This builds the jar file containing the driver -->
<target name="jar" depends="compile,examples">
! <jar jarfile="${jars}/postgresql.jar" basedir="${dest}" includes="${package}/**/*.class"
excludes="${package}/test/**"/>
! <jar jarfile="${jars}/postgresql-examples.jar" basedir="${dest}" includes="example/**/*.class" />
</target>
<!--