Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 17628 invoked from network); 27 Jul 2005 19:32:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Jul 2005 19:32:20 -0000 Received: (qmail 84217 invoked by uid 500); 27 Jul 2005 19:32:19 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 84179 invoked by uid 500); 27 Jul 2005 19:32:18 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 84166 invoked by uid 99); 27 Jul 2005 19:32:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2005 12:32:18 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 68.142.198.210 is neither permitted nor denied by domain of mcintyre.a@gmail.com) Received: from [68.142.198.210] (HELO smtp111.sbc.mail.mud.yahoo.com) (68.142.198.210) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 27 Jul 2005 12:32:11 -0700 Received: (qmail 24356 invoked from network); 27 Jul 2005 19:32:15 -0000 Received: from unknown (HELO ?192.168.0.5?) (fuzzylogic@sbcglobal.net@68.121.101.242 with plain) by smtp111.sbc.mail.mud.yahoo.com with SMTP; 27 Jul 2005 19:32:14 -0000 Mime-Version: 1.0 (Apple Message framework v733) In-Reply-To: <42E79254.2010202@debrunners.com> References: <42E79254.2010202@debrunners.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Andrew McIntyre Subject: Re: derby.jar size/-g issue Date: Wed, 27 Jul 2005 12:32:03 -0700 To: "Derby Development" X-Mailer: Apple Mail (2.733) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Jul 27, 2005, at 6:55 AM, Daniel John Debrunner wrote: > When I build derby.jar in insane mode I always get a jar file that is > around 2.9Mb whereas the released versions are about 2.1Mb. I've > tracked > it down to the fact my class files include the compiler debugging > information from -g. I figured out the original problem here. The ensuresanitystate target was just calling the sane target to ensure that a state.properties file was available. This was then read in by a different target shortly thereafter, and sanity would be set to true. A short time after that, it would then be regenerated by the state target and read in again, but sanity was already set to true and Ant would not allow the property to be overridden by the next load of state.properties. I've fixed this by conditionally calling the correct target in ensuresanitystate, sane or insane, based on the value of the sane variable. As a side note, I also discovered that properties loaded into Ant with the -propertyfile option do not undergo variable expansion, as when loaded with . andrew