Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 24864 invoked from network); 3 May 2010 11:34:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 May 2010 11:34:01 -0000 Received: (qmail 22259 invoked by uid 500); 3 May 2010 11:34:01 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 22116 invoked by uid 500); 3 May 2010 11:34:00 -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 22109 invoked by uid 99); 3 May 2010 11:34:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 May 2010 11:34:00 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.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, 03 May 2010 11:33:50 +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 o43BXRGk017022 for ; Mon, 3 May 2010 11:33:28 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 <0L1U00700D75CW00@fe-emea-13.sun.com> for derby-dev@db.apache.org; Mon, 03 May 2010 12:33:19 +0100 (BST) Received: from [192.168.0.198] ([unknown] [84.215.174.92]) by fe-emea-13.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0L1U006WADFJZVA0@fe-emea-13.sun.com> for derby-dev@db.apache.org; Mon, 03 May 2010 12:33:19 +0100 (BST) Date: Mon, 03 May 2010 13:33:18 +0200 From: Kristian Waagan Subject: Change the behavior of PropertySetter? Sender: Kristian.Waagan@Sun.COM To: derby-dev@db.apache.org Message-id: <4BDEB47E.8060605@Sun.COM> User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.8) Gecko/20100329 Lightning/1.0b1 Thunderbird/3.0.3 X-Virus-Checked: Checked by ClamAV on apache.org Hi, The PropertySetter, whose responsibility it is to configure the compile classpath(s) if the user hasn't, now has two algorithms to detect JDK installations: (1) JAR inspection (newer) (2) directory name filter (old) Currently (1) is run first, followed by (2). Lately, I have stumbled across a few environments where (2) causes the Derby build to fail. The typical pattern is that (1) detects a valid Java SE 6 installation, and then (2) picks up an invalid installation of Java SE 5.0 or J2SE 1.4. Would it make sense to run (2) only if (1) can't find the required JDK(s)? In my opinion, 'ant all buildjars' should just work (to build everything you still have to add JUnit). Regular Derby developers with special build requirements can configure the build process manually (they are probably doing this already). What do people think? As a side note, as people start building Derby with other JDKs, like Harmony, OpenJDK or the FSF-one, I do expect some issues. Also, I think Derby simply doesn't build with all of these... Regards, -- Kristian