Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 58718 invoked from network); 27 Nov 2002 19:23:23 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 27 Nov 2002 19:23:23 -0000 Received: (qmail 8556 invoked by uid 97); 27 Nov 2002 19:24:27 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 8527 invoked by uid 97); 27 Nov 2002 19:24:27 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 8503 invoked by uid 98); 27 Nov 2002 19:24:26 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: From: Dominique Devienne To: "'Ant Developers List'" Subject: RE: [PATCH] Adding Dynamic elements for the n'th time Date: Wed, 27 Nov 2002 13:23:15 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Given the little I know about schema, it seems it requires to use a type="BaseType" attribute when one want to use a derived type instead of the type itself. The same technique could be used to disambiguate which is what, not based on the type, but the element name instead. Just thinking out loud, while reading the views of the Ant experts. --DD -----Original Message----- From: Magesh Umasankar [mailto:umagesh@apache.org] Sent: Wednesday, November 27, 2002 11:46 AM To: Ant Developers List Subject: Re: [PATCH] Adding Dynamic elements for the n'th time ----- Original Message ----- From: "Stefan Bodewig" > On Wed, 27 Nov 2002, Magesh Umasankar wrote: > > >> I think I remember it. A problem arises when you have two > >> different nested elements (element names) that both accept the same > >> class. Say you have that is derived from Path, what would > >> it be used for in > >> > >> > >> > >> > >> > >> src, classpath, sourcepath, bootclasspath and extdirs would be > >> possible. Has this been the reason for your choice Conor? How > >> would your patch deal with it Magesh? > > > > If you have addMyPath(MyPath) that would be called; > > Else > > If you have addPath(Path), that would be called. > > But I have addSrc(Path) and addClasspath(Path) - which would be > called? With the patch I submitted, neither! In the above case, you would have to have addSrc(Src) and addClasspath(Classpath) assuming both Src and Classpath both extend from Path. Of course, the element that is being added may be a derivative of Src or Classpath also. This, I think is a reasonable constraint if you plan to be doing different things (obviously) in addSrc and addClasspath. If you do not plan to have differeing code in these two methods, then all you need is addPath(Path) > Stefan Cheers, Magesh -- To unsubscribe, e-mail: For additional commands, e-mail: