Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 16802 invoked from network); 30 Jan 2001 03:24:36 -0000 Received: from cortex-gw.magna.com.au (HELO smtp.cortexebusiness.com.au) (203.174.140.214) by h31.sny.collab.net with SMTP; 30 Jan 2001 03:24:36 -0000 Received: (from daemon@localhost) by smtp.cortexebusiness.com.au (8.10.0/8.10.0) id f0U3Oho14369 for ; Tue, 30 Jan 2001 14:24:43 +1100 (EST) Received: from UNKNOWN(192.168.1.32), claiming to be "snotty" via SMTP by ripley, id smtpdAAAqWaa7B; Tue Jan 30 14:24:34 2001 From: "Conor MacNeill" To: Subject: RE: Problems with the current bootstrap process Date: Tue, 30 Jan 2001 14:24:57 +1100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal In-Reply-To: <3.0.6.32.20010130131346.00a67430@alphalink.com.au> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N > From: Peter Donald [mailto:donaldp@apache.org] > > At 12:43 30/1/01 +1100, Conor MacNeill wrote: > >> > > >> >Huh? If we can't get the version from an embedded properties > resource we > >> >won't have much chance to load the task list either. > >> > >> correct. > > > >So you are saying ant should not use resources. I don't agree. > > No I am saying that it should not be required that resources are used. > Especially in cases like this when there is a simple alternative that does > the exact same thing. > So you are only solving half the issue. Is that right? > >because it is data - not code. > > Yes - compile time static data Well, I guess I don't see version information as compile-time static data. Is there some code which depends on the value of the version information at compile time? The fact that you need to copy and munge the code is perhaps indicative of the problems with this approach. > There is a reason that this is a time > houred practice in creating a dll/so files ;) We are not building DLLs and it seems to me that the Java way is to use resources. Some examples: For example the JAXP RI, Xerces, Xalan all use resources (properties files and other types) in their jars. > While the argument could be > made that java resources are equivelent to "resources" in a win32 app and > thus acceptable. Yep. > However resources ala win32 are different as there are > compile time checks that will stop compilation (at least in VC6) if you > screw up the win32-resources mapping. > I don't know much about Win32 resources but IIRC, version resources on a Mac have no compile time checks. Not sure how relevant this point is. > >because changing it is not backward compatible > > true - but the chances of someone actually using this are minimal that I > think it is acceptable. Probably right. This implies that there are levels of backward compatibility we are prepared to break. Conor