Return-Path: Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 44373 invoked by uid 500); 20 Jun 2003 18:08:49 -0000 Mailing-List: contact dev-help@ant.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 dev@ant.apache.org Received: (qmail 44205 invoked from network); 20 Jun 2003 18:08:47 -0000 Received: from k100-138.bas1.dbn.dublin.eircom.net (HELO corvil.com) (159.134.100.138) by daedalus.apache.org with SMTP; 20 Jun 2003 18:08:47 -0000 Received: from preilly.local.corvil.com (preilly.local.corvil.com [172.18.1.173]) by corvil.com (8.12.9/8.12.5) with ESMTP id h5KI8nAG015420 for ; Fri, 20 Jun 2003 19:08:49 +0100 (IST) (envelope-from peter.reilly@corvil.com) Subject: Re: Using classloader for Junit From: peter reilly To: Ant Developers List In-Reply-To: References: <3EF16BC1.7060604@chalko.com> <1056009745.1056.1.camel@preilly.local.corvil.com> <3EF1C60E.9070503@chalko.com> Content-Type: text/plain Organization: Message-Id: <1056132791.1056.520.camel@preilly.local.corvil.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 20 Jun 2003 19:13:11 +0100 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Fri, 2003-06-20 at 06:23, Costin Manolache wrote: > Nick Chalko wrote: > > > After I slept on it, I thought of how I could extend the antclassloader > > to handle the situations I need. > > I am considering a > > That will explicitly allow the optional ant task to be loaded in the > > child classloader. > > I may even go so far as automatically adding this fileset > > ${ant.home}/lib/ant-*.jar to the classloader. > > > > That should handle the usecase I have in mind. > > Are you talking about a single child loader for all optional tasks ? > This may work - if you use normal delegation. The code that instantiate > the tasks needs to have a reference to the child loader, and I don't > think core tasks have dependencies on the classes in the optional. > > > peter reilly wrote: > > > >>Ah, I see. > >>That would be nice, but the classloader task is not > >>yet complete. Hi Costin, looking at classloader, it seems to imply that it can be used at to ant's default classloader, to help in defining tasks/types. However when I try to do: hello hello The first myecho works, but the second does not. Peter. > > The part that loads junit.jar to the main loader is complete. > > There are other possible enhancements to create arbitrary loaders > or support reloading which are not yet implemented. > > Costin > > > > >> > >>Peter > >> > >>On Thu, 2003-06-19 at 08:52, Nick Chalko wrote: > >> > >> > >>>peter reilly wrote: > >>> > >>> > >>> > >>>>Check the ant faq http://ant.apache.org/faq.html#delegating-classloader > >>>>In essence you need to place the junit.jar file in ${ant.home}/lib > >>>> > >>>> > >>>> > >>>> > >>>> > >>>I had hoped that was what the task would let me avoid. > >>> > >>> > >>> > >>> > >> > >> > >>--------------------------------------------------------------------- > >>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > >>For additional commands, e-mail: dev-help@ant.apache.org > >> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > For additional commands, e-mail: dev-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org