[libpostgresql-jdbc-java] 01/08: Explicitly state which source level we are compiling. Newer versions of gij/gcj run a 1.5 VM, but default to a 1.4 source level compile which tricks up our build system. This still doens't fix the case of running with a newer VM than compiler, but I don't see what we can do about that.
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Mon Jan 9 10:19:32 UTC 2017
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to tag REL8_0_320
in repository libpostgresql-jdbc-java.
commit 6680b0fead28ac980ba44263603e86120af20b4b
Author: Kris Jurka <books at ejurka.com>
Date: Tue Apr 24 18:19:15 2007 +0000
Explicitly state which source level we are compiling. Newer versions
of gij/gcj run a 1.5 VM, but default to a 1.4 source level compile
which tricks up our build system. This still doens't fix the case of
running with a newer VM than compiler, but I don't see what we can
do about that.
Tom Lane + Oliver Jowett
---
build.xml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/build.xml b/build.xml
index 43ba54a..046fb7f 100644
--- a/build.xml
+++ b/build.xml
@@ -8,7 +8,7 @@
This file now requires Ant 1.4.1. 2002-04-18
- $PostgreSQL: pgjdbc/build.xml,v 1.63 2005/02/01 07:27:53 jurka Exp $
+ $PostgreSQL: pgjdbc/build.xml,v 1.63.2.1 2006/04/29 02:18:55 jurka Exp $
-->
@@ -113,7 +113,7 @@
<available classname="org.postgresql.Driver" property="old.driver.present" />
<fail message="Old driver was detected on classpath or in jre/lib/ext, please remove and try again." if="old.driver.present" />
- <javac classpath="${srcdir}" srcdir="${srcdir}" destdir="${builddir}" debug="${debug}">
+ <javac classpath="${srcdir}" srcdir="${srcdir}" destdir="${builddir}" debug="${debug}" source="${java.specification.version}">
<!-- This is the core of the driver. It is common for all versions. -->
<include name="${package}/*.java" />
<include name="${package}/core/**" />
@@ -339,7 +339,7 @@
<target name="testjar" depends="jar">
<fail message="JUnit could not be found in your classpath. You must download and install it from http://junit.org to build and run the test suite." unless="junit" />
<mkdir dir="${builddir}/tests"/>
- <javac srcdir="${srcdir}" destdir="${builddir}/tests" debug="${debug}">
+ <javac srcdir="${srcdir}" destdir="${builddir}/tests" debug="${debug}" source="${java.specification.version}">
<include name="${package}/test/**" />
<exclude name="${package}/test/jdbc2/optional/**" unless="jdbc2optionaltests" />
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git
More information about the pkg-java-commits
mailing list