Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 23381 invoked from network); 8 Jul 2004 14:49:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Jul 2004 14:49:54 -0000 Received: (qmail 93825 invoked by uid 500); 8 Jul 2004 14:49:36 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 93758 invoked by uid 500); 8 Jul 2004 14:49:36 -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 93744 invoked by uid 99); 8 Jul 2004 14:49:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [156.153.255.245] (HELO palrel10.hp.com) (156.153.255.245) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 08 Jul 2004 07:49:34 -0700 Received: from hplns3.hpl.hp.com (hplns3.hpl.hp.com [15.0.48.4]) by palrel10.hp.com (Postfix) with ESMTP id 828FAFFC4 for ; Thu, 8 Jul 2004 07:49:33 -0700 (PDT) Received: from [15.144.25.135] (chamonix.hpl.hp.com [15.144.25.135]) by hplns3.hpl.hp.com (8.11.1 - (Revision 1.4+JAGae91741+JAGae92668)/8.12.9/HPL-PA Hub) with ESMTP id i68EnWx17955 for ; Thu, 8 Jul 2004 07:49:32 -0700 (PDT) Message-ID: <40ED5E62.3000405@apache.org> Date: Thu, 08 Jul 2004 15:46:58 +0100 From: Steve Loughran User-Agent: Mozilla Thunderbird 0.7 (X11/20040615) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Developers List Subject: Re: Class.forName() in test environment References: <879A5AD5DD0ED511891F0003473A9B560E23F31A@Z011004> In-Reply-To: <879A5AD5DD0ED511891F0003473A9B560E23F31A@Z011004> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Jan.Materne@rzf.fin-nrw.de wrote: > I�ve added the capability to specify a class which the selector > should load as cache|algorithm|comparator. Test passed. > > BUT > > I have to add "-lib build\testcases" for running the tests, otherwise > the selector wont find a mock class which resides in the test package. > > A first view into the build.xml seems to add the test classes (and sources) > to the classpath, but it doesnt ... > I'd suspect the classloader used for loading the algorithm is not the one you want. There may be a context class loader (We dont use that in ant, yet, do we?), or you find the taskdef that declares the algorithm, the classpath of it and you are away. Yes, this probably means a new kind of ant type... --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org