Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 99285 invoked from network); 10 Sep 2005 15:16:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Sep 2005 15:16:21 -0000 Received: (qmail 14902 invoked by uid 500); 10 Sep 2005 15:16:20 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 14818 invoked by uid 500); 10 Sep 2005 15:16:19 -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 14805 invoked by uid 99); 10 Sep 2005 15:16:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Sep 2005 08:16:19 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [217.160.128.107] (HELO www.samaflost.de) (217.160.128.107) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Sep 2005 08:16:31 -0700 Received: by www.samaflost.de (Postfix, from userid 1000) id 771C880009F; Sat, 10 Sep 2005 17:16:16 +0200 (CEST) To: dev@ant.apache.org Subject: Re: Antlib autoloading X-Draft-From: ("nnfolder:mail.jakarta-ant" 70575) References: <87r7byggfo.fsf@www.samaflost.de> <255d8d690509091457205f061b@mail.gmail.com> From: Stefan Bodewig Date: Sat, 10 Sep 2005 17:16:16 +0200 In-Reply-To: <255d8d690509091457205f061b@mail.gmail.com> (Dominique Devienne's message of "Fri, 9 Sep 2005 16:57:07 -0500") Message-ID: <87r7bxnebj.fsf@www.samaflost.de> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Fri, 9 Sep 2005, Dominique Devienne wrote: > On 9/9/05, Stefan Bodewig wrote: >> > So, any ideas how this could be acomplished? >> Load all resources from META-INF/antlib.xml at startup and process >> them, I'd say. > > But doesn't that go against Ant's tradition to not have auto-magic > things, but instead spell things out explicitly, usually in the > build file? Yes, probably. Even though there is a lot of explicitly invocable magic that is not visible in the build file either (build.sysclasspath for example). > I'd rather we extend to accept a of AntLib jars > to load, possibly thru META-INF/antlib.xml, than auto-magically > loading all possible antlibs visible from the classpath. At least > you can see it and start looking at the jars it loads. You can't look at the jars loaded by xmlns:au="antlib:org.apache.ant.antunit" either. > How would you know looking at a build file where a task is coming > from otherwise? How do you know with a namespace declaration? > Also, for example, I have quite a few AntLibs which are in ant/lib, > and thus on Ant's classpath, but I don't use all of them in all my > builds. They're there because it's our official supercharged > production Ant distro, but loading all of them in builds that > require none or just a few is wasteful. Completely agreed, that's why not enabling autoloading by default is a good idea. I personally don't want to autoload all antlibs, in oarticular not all into the default namespace, myself either. I just commented on how it could be done 8-) > PS: And BTW, Matt's point about conflict resolution is a good one. Yes. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org