Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 32289 invoked from network); 29 Apr 2006 20:32:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Apr 2006 20:32:57 -0000 Received: (qmail 71796 invoked by uid 500); 29 Apr 2006 20:32:53 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 71703 invoked by uid 500); 29 Apr 2006 20:32:52 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 71692 invoked by uid 99); 29 Apr 2006 20:32:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Apr 2006 13:32:52 -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 [144.140.82.155] (HELO omta03ps.mx.bigpond.com) (144.140.82.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Apr 2006 13:32:51 -0700 Received: from julia ([143.238.196.231]) by omta03ps.mx.bigpond.com with ESMTP id <20060429203229.UCVW15112.omta03ps.mx.bigpond.com@julia> for ; Sat, 29 Apr 2006 20:32:29 +0000 From: "Steve" To: "'Ant Users List'" Subject: RE: Asking for new feature: Self-Discovery of service to make Ant a real extensible system Date: Sun, 30 Apr 2006 06:02:27 +0930 Message-ID: <000201c66bcc$07e22780$0201a8c0@julia> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcZqnSr4C0D+EpT3THqx0/LgNV7TcQBLaM+g In-Reply-To: <7233a2ec0604280123n5f3c88e7i27d6e9f3c869a6f6@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > -----Original Message----- > From: Huxi LI [mailto:huxili@gmail.com] > Sent: Friday, 28 April 2006 5:54 PM > To: user@ant.apache.org > Subject: Asking for new feature: Self-Discovery of service to > make Ant a real extensible system > > **Hi everyone, > > I would like to launch a discussion about implementation of > self-discovery feature in Ant. > The idea is that when users drop a jar in share directory, > all custiom tasks and datatypes should be discovered > automatically by Ant. The same is true when jars are removed > from the share directory. The principal of self-discovery is possible based on the namespace controls already in current Ant. By adding a custom ComponentHelper you can intercept task loading requests. For example, the ComponentHelper class includes the following operation: public Object createComponent( String name ) { .... } In the above method invocation the 'name' parameter is supplied in the form 'namespace':'task'. If the namespace is a manageable namespace (i.e. something you can use to resolve the actual resources), then you can auto load the task. An example of this approach is available in the Transit antlib [1]. Cheers, Steve. [1] http://www.dpml.net/transit/tasks/index.html --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org