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
gh, it may be overkill. That's for you to decide. --DD -Original Message- From: Marc Portier [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2003 4:35 PM To: [EMAIL PROTECTED] Subject: having datatypes load classes Hi all, I'm writing some Ant task that requires the flexibility

having datatypes load classes

2003-04-08 Thread Marc Portier
Hi all, I'm writing some Ant task that requires the flexibility of having nested data-types that can load their own classes. For sure I will need to have the @classpathref and nested to actually get doing it, but since that pattern is to be seen more around ant iteself,