Re: polymorphism (was Re: antlib)

2003-04-25 Thread peter reilly
On Friday 25 April 2003 10:42, Stefan Bodewig wrote: Yes, that's one way to implement it. The tricky part starts if you want to support polymorphism for more than one nested element. true. The problem exists in CVS HEAD for TokenFilter, it can take TokenFilter.Filter and TokenFilter.Tokenizer

Re: polymorphism (was Re: antlib)

2003-04-25 Thread Stefan Bodewig
On Fri, 25 Apr 2003, peter reilly [EMAIL PROTECTED] wrote: I do not see the problem here: suppose Path implements dynamicElement(Path path) one could do: javac classpath PathThatIgnoresBuildSysclassPathToTrickGump pathelement path=${classpath}/

RE: polymorphism (was Re: antlib)

2003-04-25 Thread Jose Alberto Fernandez
From: Stefan Bodewig [mailto:[EMAIL PROTECTED] On Fri, 25 Apr 2003, peter reilly [EMAIL PROTECTED] wrote: I do not see the problem here: suppose Path implements dynamicElement(Path path) one could do: javac classpath PathThatIgnoresBuildSysclassPathToTrickGump

Re: polymorphism (was Re: antlib)

2003-04-25 Thread Stefan Bodewig
On Fri, 25 Apr 2003, peter reilly [EMAIL PROTECTED] wrote: On Friday 25 April 2003 11:54, Stefan Bodewig wrote: I don't want to use it as nested element of classpath, but as nested element of javac. Why because it feels more natural? and how (from an xml point-of-view)? One of the

Re: polymorphism (was Re: antlib)

2003-04-25 Thread Stefan Bodewig
On Fri, 25 Apr 2003, Jose Alberto Fernandez [EMAIL PROTECTED] wrote: Actually, peter trick may give us a hint on an easy way to achieve polimorphism. We just need to provide a way on the basic core type implementations to delegate all calls to a nested object (similar to what we do for

Re: polymorphism (was Re: antlib)

2003-04-25 Thread peter reilly
On Friday 25 April 2003 14:30, Stefan Bodewig wrote: because it feels more natural? classpath ant:type=PathThatIgnoresBuildSysclassPathToTrickGump or PathThatIgnoresBuildSysclassPathToTrickGump ant:element=classpath I see. This is an interesting idea, whether is more natural is debatable

Re: polymorphism (was Re: antlib)

2003-04-25 Thread peter reilly
On Friday 25 April 2003 14:34, Stefan Bodewig wrote: On Fri, 25 Apr 2003, Jose Alberto Fernandez In simple non-ambiguos cases like the above this could be without the trick. copy ... classfileset ... /copy condition true/ /condition This is exactly what dynamicElement is for. For

RE: polymorphism (was Re: antlib)

2003-04-25 Thread Wannheden, Knut
This discussion starts to get interesting. Just a few thoughts... because it feels more natural? classpath ant:type=PathThatIgnoresBuildSysclassPathToTrickGump or PathThatIgnoresBuildSysclassPathToTrickGump ant:element=classpath I see. This is an interesting idea, whether

Re: polymorphism (was Re: antlib)

2003-04-25 Thread peter reilly
On Friday 25 April 2003 16:45, Wannheden, Knut wrote: It'd be natural to people who've worked with XML Schema Instance documents, where you'd write something like: classpath xsi:type=my:somekindofpath/ Maybe the XML Namespace like notation of my:somekindofpath could mean that

RE: polymorphism (was Re: antlib)

2003-04-25 Thread Wannheden, Knut
I have been thinking about using namespaces with antlibs like this: project .. init properies .../ use xmlns:antcontrib=antlib:${ant-contrib.jar} xmlns:antelope=antlib:${antelope.jar} target name=test antelope:if

RE: polymorphism (was Re: antlib)

2003-04-25 Thread Costin Manolache
Wannheden, Knut wrote: project .. init properies .../ use xmlns:antcontrib=antlib:${ant-contrib.jar} xmlns:antelope=antlib:${antelope.jar} target name=test antelope:if /antelope:if antcontrib:foreach ...

RE: polymorphism (was Re: antlib)

2003-04-25 Thread Dominique Devienne
No need for parsing! Don't know about ClassLoader#getResources??? --DD -Original Message- From: Costin Manolache [mailto:[EMAIL PROTECTED] I don't like passing the .jar very much - but that's probably the only way if we want to use META-INF/antlib.xml. The alternative would be to