Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 24800 invoked from network); 14 Jun 2010 14:35:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Jun 2010 14:35:07 -0000 Received: (qmail 2104 invoked by uid 500); 14 Jun 2010 11:48:27 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 1905 invoked by uid 500); 14 Jun 2010 11:48:25 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 1896 invoked by uid 99); 14 Jun 2010 11:48:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jun 2010 11:48:24 +0000 X-ASF-Spam-Status: No, hits=-2.9 required=10.0 tests=AWL,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.18.6.24] (HELO gmp-eb-inf-2.sun.com) (192.18.6.24) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jun 2010 11:48:16 +0000 Received: from fe-emea-13.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o5EBlsvH021771 for ; Mon, 14 Jun 2010 11:47:54 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from conversion-daemon.fe-emea-13.sun.com by fe-emea-13.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0L400000061YVC00@fe-emea-13.sun.com> for derby-dev@db.apache.org; Mon, 14 Jun 2010 12:47:34 +0100 (BST) Received: from [129.159.139.223] ([unknown] [129.159.139.223]) by fe-emea-13.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0L400007863AQ350@fe-emea-13.sun.com> for derby-dev@db.apache.org; Mon, 14 Jun 2010 12:47:34 +0100 (BST) Date: Mon, 14 Jun 2010 13:47:22 +0200 From: Kristian Waagan Subject: Heads up: upcoming minor changes to the Derby build JDK auto-detection Sender: Kristian.Waagan@Sun.COM To: Derby Development Message-id: <4C1616CA.8070904@Sun.COM> User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.8) Gecko/20100412 Lightning/1.0b1 Thunderbird/3.0.3 Hello, I believe that it is soon time to reorganize the code living in PropertySetter. As mentioned by Rick, it has evolved significantly since its inception. This is, however, a separate issue. For now, I'd like to implement a few improvements: a) don't add Java 6 libraries when compiling with a Java 5 compiler (tracked somewhat incorrectly under DERBY-3989, see comments at the end) b) fix broken logic for newer OS X installations (DERBY-4694) c) disable (and remove) original detection algorithm a) should have minimal impact, since the disallowed (or skipped) configuration will result in a failed build (wrong class version). If the configuration is specified explicitly, the build will be aborted with a sensible error message. If the configuration is detected by PropertySetter, the Java 6 libraries will be ignored. b) affects only Mac users, the problem was reported by a Derby user. c) is a bit more unclear, but I believe it should be reasonably safe. The problem with the old algorithm, is that it doesn't verify the JDK installation as well as the new algorithm (which only runs a few more checks). To my knowledge, this can happen on default installations of some Linux distros. I'll commit a) shortly, follow up with b) within a few weeks, and finally commit c) (a new Jira will be created). Please let the list know if any of the changes break your build. Regards, -- Kristian