Re: having datatypes load classes

2003-04-11 Thread Stefan Bodewig
On Thu, 10 Apr 2003, Marc Portier <[EMAIL PROTECTED]> wrote: > seems to me however the current LoaderUtil more has somewhat of a > jdk-version match-up function? It used to be used for that, yes. But this part of its functionality is no longer needed in Ant 1.6 as we've dropped JDK 1.1 compatibi

Re: having datatypes load classes

2003-04-10 Thread Marc Portier
Provided patch under bugzilla 18906 - ended up being ClasspathUtil.java - added the newInstance idea as well I need to get on with the show first now, but like to refactor other parts of ant where similar cut/paste code might be lingering (for sure o.a.t.a.taskdefs.Definer is candidate) Hope to

Re: having datatypes load classes

2003-04-10 Thread Marc Portier
We already have LoaderUtil in the util subpackage. Might fit there. I started on PathUtil for the moment, all is static so could be injected easily, seems to me however the current LoaderUtil more has somewhat of a jdk-version match-up function? - public ClassLoader getClassLoaderForPath(Path

Re: having datatypes load classes

2003-04-10 Thread Marc Portier
- From: Marc Portier [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 09, 2003 1:32 AM To: Ant Developers List Subject: Re: having datatypes load classes Stefan Bodewig wrote: On Tue, 08 Apr 2003, Marc Portier <[EMAIL PROTECTED]> wrote: but since that pattern is to be seen more around ant

RE: having datatypes load classes

2003-04-09 Thread Dominique Devienne
ednesday, April 09, 2003 1:32 AM To: Ant Developers List Subject: Re: having datatypes load classes Stefan Bodewig wrote: > On Tue, 08 Apr 2003, Marc Portier <[EMAIL PROTECTED]> wrote: > > >>but since that pattern is to be seen more around ant iteself, I was >>hoping

Re: having datatypes load classes

2003-04-09 Thread Stefan Bodewig
On Wed, 09 Apr 2003, Marc Portier <[EMAIL PROTECTED]> wrote: > thx for the invitation, if others want to be on the party: please > join. 8-) > woke up with something along the lines of a > ClassLoaderFactory (name should be tuned down a bit, too much > expectations here, inspiration welcome, Pat

Re: having datatypes load classes

2003-04-09 Thread Marc Portier
Stefan Bodewig wrote: On Tue, 08 Apr 2003, Marc Portier <[EMAIL PROTECTED]> wrote: but since that pattern is to be seen more around ant iteself, I was hoping for some reuse here One would think so, but the truth is that you'll find copy-paste reuse in this area instead of delegation or somet

Re: having datatypes load classes

2003-04-09 Thread Stefan Bodewig
On Tue, 08 Apr 2003, Marc Portier <[EMAIL PROTECTED]> wrote: > but since that pattern is to be seen more around ant iteself, I was > hoping for some reuse here One would think so, but the truth is that you'll find copy-paste reuse in this area instead of delegation or something. Patches for

RE: having datatypes load classes

2003-04-08 Thread Dominique Devienne
See http://marc.theaimsgroup.com/?l=ant-dev&m=104870800508326&w=2 And http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17199 I prefer the first link, since I'm the author of it, but the second link addresses the same issue. If your elements do not need any configurations though, it may be overk