Prevent ANT from recreating the JAR files just because the

errors.properties files were being copied.
This commit is contained in:
Bruce Momjian 2001-05-19 02:48:54 +00:00
parent 385d271b81
commit a008109d05

View File

@ -3,7 +3,7 @@
build file to allow ant (http://jakarta.apache.org/ant/) to be used
to build the PostgreSQL JDBC Driver.
$Id: build.xml,v 1.11 2001/05/17 03:22:53 momjian Exp $
$Id: build.xml,v 1.12 2001/05/19 02:48:54 momjian Exp $
-->
@ -108,10 +108,11 @@
<exclude name="${package}/PostgresqlDataSource.java" unless="jdk1.2e+" />
<exclude name="${package}/xa/**" unless="jdk1.2e+" />
<exclude name="${package}/test/**" unless="junit" />
<exclude name="${package}/*.properties" />
</javac>
<copy todir="${dest}" overwrite="true" filtering="on">
<fileset dir="${src}">
<include name="**/*.properties" />
<include name="${package}/*.properties" />
<exclude name="${dest}/**" />
</fileset>
</copy>
@ -138,7 +139,7 @@
<!-- 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/**"/>
<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>