Return-Path: Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Delivered-To: mailing list dev@ant.apache.org Received: (qmail 14059 invoked from network); 14 May 2003 10:18:21 -0000 Received: from relay1.tiscali.de (HELO webmail.tiscali.de) (62.27.55.1) by daedalus.apache.org with SMTP; 14 May 2003 10:18:21 -0000 Received: from DJ0X820J (80.128.227.86) by webmail.tiscali.de (6.7.008) id 3EBF469A001A9FB5 for dev@ant.apache.org; Wed, 14 May 2003 12:07:20 +0200 Message-ID: <008e01c31a02$420c8780$030200c0@DJ0X820J> From: "Antoine Levy-Lambert" To: "Ant Developers List" References: <747F247264ECE34CA60E323FEF0CCC0C0F50F7@london.cellectivity.com> Subject: Re: antlib / proposal of Peter Reilly Date: Wed, 14 May 2003 12:19:09 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ----- Original Message ----- From: "Jose Alberto Fernandez" To: "Ant Developers List" Sent: Wednesday, May 14, 2003 11:49 AM Subject: RE: antlib / proposal of Peter Reilly I am trying simply to get some action done. I have also updated the proposal under proposal/sandbox/antlib yesterday to cater for changes in Project.java and ProjectComponent; the commit message got hit by the 100k limit. >Well I have not given the fight on the need for roles and separate >symbol-tables for different Types. I would like for someone to explain >how , , can have vendor dependent >, , etc. within this model. Costin Manolache said we should make a separate proposal for roles, including the possibility of defining roles as a normal task which you can directly include in build files. Before we do this, there needs to be some more discussion, because Costin says he would prefer that every class implementing a particular interface be automatically usable in the corresponding role. Or we need to organize one or several votes. >> I am quoting Peter Reilly here : >> >> This patch adds 4 new features (the code is interrelated, >> but may be split). >> * adapter attribute added to typedef >> * add(Type) method added to introspection rules >> * typedef can read an xml defintion file >> * namespace support for xml defintions (antlib:) >> So one can do >> >> >> >> >> >> where the class path contains the org/acme/anttasks/antlib.xml >> and the antlib.xml file contains: >> >> >> >> >As I have mentioned before, I have problems with this. It means that >users are forced to use name spaces even if there are no collisions >on the names of the components in the antlib, just because there is no >way to find the antlib.xml otherwise. I do not think that having to use a prefix to indicate tasks or types coming from a particular antlib is a huge constraint. In JSP, if you use taglibs you have to use prefixes to indicate the particular taglib you are using, such as Also, I am not sure whether the use of the prefix is required or not. (Peter ?) >I do not see an task specified in the project, does that >means that I need to put all the jars in the classpath of ANT? > I hope that is not a requirement. I think users need to be >able to specify the classpath they want to use for their >libraries just like they do for . There is an antlib task in the project. > > ToDo: add in support for ant-type polymorphism and > addConfigured(Type). > also more error checking and unit tests. > >ant-type polymorphism is not a priority for me, but >addConfigured support is. Given the fact that the >objects being passed are opaque for all purposes of >the parent element, it makes little sense to pass an >uninitialized object to the parent (which is what add(Type) does) >instead of passing an initialized object (what addConfigured(Type) >should do). I need to check what happens with add and addConfigured exactly in this proposal. I have the impression that actually both add and addConfigured are accepted, but I do not know if there is something to say which of the two versions has priority. Peter ? >Jose Alberto --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org