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 20480 invoked from network); 18 Dec 2000 04:57:46 -0000 Received: from mail.alphalink.com.au (203.24.205.7) by locus.apache.org with SMTP; 18 Dec 2000 04:57:46 -0000 Received: from donalgar (d07-ps2-mel.alphalink.com.au [202.161.107.7]) by mail.alphalink.com.au (8.9.3/8.9.3) with SMTP id PAA31109; Mon, 18 Dec 2000 15:57:45 +1100 Message-Id: <3.0.6.32.20001218155505.009b6db0@latcs2.cs.latrobe.edu.au> X-Sender: pjdonald@latcs2.cs.latrobe.edu.au X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Mon, 18 Dec 2000 15:55:05 +1100 To: ant-dev@jakarta.apache.org From: Peter Donald Subject: Re: Ant2 and properties Cc: In-Reply-To: References: <001201c05df6$6110c1c0$e8e0223f@cognet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N At 08:51 17/12/00 -0800, James Duncan Davidson wrote: >On 12/4/00 5:30 AM, "Conor MacNeill" wrote: > >> I certainly support unifying properties and the other datatypes. I had >> originally just seen this as making property a string datatype, using >> the same namespace and passing to subprojects, etc. What you are >> suggesting above is a little different. With the above we would probably >> have an explicit string datatype. > >As I was just saying to Conor offline -- I think I might be able to go for: > > > >Where the property hashtable was a name->object mapping and the default >object type was String. If some other type were specified, then that type >would be constructed with a String constructor taking the value as the >String passed to the constructor. > >${foo} is satisfied by getProperty("foo").toString(); Are you sure thats wise. That could end up with large number of conversions and large amounts of uneeded verbosity. COnsider the average case ... That would involve 5 different conversions - and considering that file properties are usually used as file parameters the conversions could be greatly decreased and simplified if conversion wasn't mandatory. Cheers, Pete *-----------------------------------------------------* | "Faced with the choice between changing one's mind, | | and proving that there is no need to do so - almost | | everyone gets busy on the proof." | | - John Kenneth Galbraith | *-----------------------------------------------------*