Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 50108 invoked from network); 28 Oct 2004 16:25:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 Oct 2004 16:25:55 -0000 Received: (qmail 48101 invoked by uid 500); 28 Oct 2004 16:25:44 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 47901 invoked by uid 500); 28 Oct 2004 16:25:42 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 47886 invoked by uid 99); 28 Oct 2004 16:25:42 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [206.190.39.182] (HELO web52905.mail.yahoo.com) (206.190.39.182) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 28 Oct 2004 09:25:40 -0700 Message-ID: <20041028162538.85859.qmail@web52905.mail.yahoo.com> Received: from [212.95.183.130] by web52905.mail.yahoo.com via HTTP; Thu, 28 Oct 2004 09:25:38 PDT Date: Thu, 28 Oct 2004 09:25:38 -0700 (PDT) From: Ivan Ivanov Subject: RE: Propostion for improving PropertyFileInputHandler To: Ant Users List , Bill Rich In-Reply-To: <200410281531.i9SFVbnH010152@ylpvm01.prodigy.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Bill, my idea is that now PropertyFileInputHandler is not very intuitive to use and the unprepared user might encounter the same errors as I encountered. What we have now is: 1) If we use prompts with spaces, we should remember to escape the spaces, the way Stefan showed which is at least tedious. 2) Prompts are changed frequently. In the case of my task I changed them more than 10 times to adjust them. And when we change them we should touch them in the properties file - again tedious. 3) Nothing guarantees that the used prompts are unique. You say that in my concrete sample I can rearrange them and I agree completely, but the non-uniqueness opens the possibility of unintentional error. In my case, I checked -propertyfile option as Matt Benson showed and it seems to work for me so there is at least one way to do my job. Let's not forget however that all the three issues will be solved by making PropertyFileInputHandler use addproperty attribute and that is why I suggested it. In short I will be happy if the patch is accepted and I will not be unhappy if it is not accepted :)) Cheers to all of you, friends Ivan --- Bill Rich wrote: > This example points out a failure in the way the > prompts are stated and not > in using the prompt as a key. In the example the two > prompts are exactly the > same. I would assume that I would respond with the > exact same value to both > of the prompts because that is what I am asked for. > > If the interface wants both the user's first name > and last name then the > prompts should be "Enter your first name" and "Enter > your last name". If > this is true then the prompt is adequate for the > properties file. If the > same value is wanted in both properties then I don't > understand the example. > > Thanks. Bill > > Bill Rich > Wilandra Consulting LLC > 1325 Addiewell Place > San Jose, CA 95120-3905 > phone: +1 408 268-2452 > mobile: +1 408 410-9713 > Santa Cruz: +1 831 464-9007 > fax: +1 413 669-9716 > bill@wilandra.com > http://www.wilandra.com __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org