Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 20477 invoked from network); 25 May 2005 18:40:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 May 2005 18:40:50 -0000 Received: (qmail 8339 invoked by uid 500); 25 May 2005 18:40:48 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 8298 invoked by uid 500); 25 May 2005 18:40:47 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 8281 invoked by uid 99); 25 May 2005 18:40:47 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jak-ant-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 25 May 2005 11:40:46 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Db0lN-0005C8-T2 for dev@ant.apache.org; Wed, 25 May 2005 20:37:53 +0200 Received: from c-24-61-15-229.hsd1.ma.comcast.net ([24.61.15.229]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 May 2005 20:37:53 +0200 Received: from jesse.glick by c-24-61-15-229.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 May 2005 20:37:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@ant.apache.org From: Jesse Glick Subject: Re: AW: [Fwd: Some Thoughts on Ant 1.3 and 2.0] Date: Wed, 25 May 2005 14:38:23 -0400 Organization: Sun Microsystems / NetBeans Lines: 48 Message-ID: References: <879A5AD5DD0ED511891F0003473A9B5614F60738@Z011004> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c-24-61-15-229.hsd1.ma.comcast.net User-Agent: Mozilla Thunderbird 1.0.2-1.3.3 (X11/20050513) X-Accept-Language: en-us, en In-Reply-To: <879A5AD5DD0ED511891F0003473A9B5614F60738@Z011004> Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N >> The Schema file is there to support GUI tools for example. They >> could prompt for required attributes, This would be nice! >> let you select enumerated attributes from a list, FWIW, NetBeans would not need this - currently loads the EnumeratedAttribute subclass on the fly and uses it for code completion. But having this information in a static declarative format might be better. Relying on such a format might not be a good idea unless it were widely used and easy to create, though - I think it's pretty common to just write a one-off task that you use in a script as needed, and it's nice for a tool to be able to offer code completion and other structural help with such a custom task. (E.g. NB analyzes custom tasks when you run a script which defines them, as a heuristic.) The nice thing about apt is that it could ensure that all the needed info is right there in the java.lang.Class - not good for general docs but nice for finding required attributes and that sort of thing. Not available for JDK 1.2-1.4 though. BTW I just had a thought - should use of EnumeratedAttribute be required for JDK 5 users? Maybe you should be able to just do something like public enum WhenEmptyAction {fail, create, skip} public class SomeTask { public void setWhenempty(WhenEmptyAction action) {...} public void execute() {...} } >> require integer attributes to really contain numbers ... I think the signature of the task class already handles this case, right? setSomething(int)? Jan.Materne@rzf.fin-nrw.de wrote: > How the IDEs solve that at the moment? For required attributes, you can't solve it that I know of, without hardcoding attribute names for well-known tasks (or trying to parse the HTML tables in the docs, or something icky like that). -J. -- jesse.glick@sun.com x22801 netbeans.org ant.apache.org if I had known it was harmless I would have killed it myself --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org