Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 12443 invoked from network); 20 Nov 2008 09:07:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Nov 2008 09:07:55 -0000 Received: (qmail 5124 invoked by uid 500); 20 Nov 2008 09:08:03 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 5074 invoked by uid 500); 20 Nov 2008 09:08:03 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 5063 invoked by uid 99); 20 Nov 2008 09:08:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Nov 2008 01:08:03 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gscokart@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Nov 2008 09:06:40 +0000 Received: by nf-out-0910.google.com with SMTP id g13so187928nfb.10 for ; Thu, 20 Nov 2008 01:07:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=B4qIOo9mumdv5mASsqcgzKNtqgk12uoihOKopqDHt0Q=; b=W5gJHsfO2IMJmJLV1xQ+ec0YGlPLu7YQys+TqT40xwrrrA+CPwCCXfqz/Nmc9bzYHV qo9+4oo250uu6BO+thWs5aYAnaM52b5yrrKgWe/dPPP42crsjN8wgvA8AZ3vFTd1DjbQ QIqp/2GtAaxgwS1m3Aj4NLUJD6GMbxuQXjbnU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=s1/ycraTnWWxdSUv/nVTR1yP9guOzkj6sWcZGl8RpIfOXqMHXhWcbsxaQot6c83ROS 1YqWvDh/DBjbDZ0Ad3UWBZ6xYHNBC7SC/rxhpvJy9LDAcfHl+6H/F/uRZiYoHjIz4htA CdDqyUmYdqGtjiRrCb2ZdxVuY7O3Gyl+cHBz0= Received: by 10.103.160.10 with SMTP id m10mr788518muo.50.1227172034603; Thu, 20 Nov 2008 01:07:14 -0800 (PST) Received: by 10.103.219.10 with HTTP; Thu, 20 Nov 2008 01:07:14 -0800 (PST) Message-ID: Date: Thu, 20 Nov 2008 10:07:14 +0100 From: "Gilles Scokart" To: "Ant Developers List" Subject: Re: CoreLoader not used for antlib & typedef [Re: Launching unit test of antunit] In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org 2008/11/20 Stefan Bodewig : > On 2008-11-19, Gilles Scokart wrote: > >> I was thus thinking to provide this classpath using the >> project.setCoreLoader. But that didn't worked. >> Indeed, the coreLoader is not used when declaring antlib. > > Is coreLoader used at all? Anywhere? Yes, in a very few tasks : Which ressources and ExecuteJava (but only when no classpath is given) It is also used for the core ant tasks & types. > > There are bugzilla issues talking about making it functional. > > I don't recall the details but think the core loader is the result of > an unfinished experiment. It was what I was suspecting. There is indeed a lot of tasks that use Project.createClassLoader that was not considering the coreLoader. > >> In parallel I wanted to ask feedback for such sensible change for >> which I can't really mesure all the impact. > > Classloader changes are dangerous, in particular since our unit tests > don't cover many scenarios (and it would be difficult to do, you'd > need lots of forked junits) and Gump uses a very specific construct so > won't catch problems here. Oups, I was hoping Gump could help... Specialy for the different antlibs test suites. > > For your concrete patches I'll need more time to review before I > comment. > I can understand. Take your time. On my side, I managed to launch the unit test. I works at the exception of the antunit move-test.xml. But I guess it is related to cygwin (or java 1.6?). I will have a look to be sure. I have also rethink about the change. I feel that the change in BuildFileTest in maybe too intrusive and there is a risk of incompatibility, specialy if some test are testing things linked to classLoader. Maybe transfering the unit test classLoader into the project coreLoader should be optional, to reduce this risk. Also, in the componentHelper, the call definer.setAntlibClassLoader(project.getCoreLoader()); is useless with the change done in Project. I did it this change first to allow the automated antlib to be found, but then I realized that it still didn't worked for the declared typedef and I made the more impacting change in Project. -- Gilles Scokart --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org