Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 20408 invoked from network); 8 Jun 2004 21:20:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Jun 2004 21:20:02 -0000 Received: (qmail 76569 invoked by uid 500); 8 Jun 2004 21:20:09 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 76455 invoked by uid 500); 8 Jun 2004 21:20:09 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 76436 invoked by uid 99); 8 Jun 2004 21:20:08 -0000 Received: from [62.156.147.74] (HELO relay.t-online-com.de) (62.156.147.74) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 08 Jun 2004 14:20:08 -0700 Received: from antbuild.com (internet-cafe-150.sapinternetcafe.de [155.56.24.150]) by relay.t-online-com.de (SMTPSVC(1.0.0.1)) with ESMTP id AB51C150447 for ; Tue, 8 Jun 2004 23:09:16 +0200 (CEST) Message-ID: <40C62CF4.1000608@antbuild.com> Date: Tue, 08 Jun 2004 23:17:40 +0200 From: =?ISO-8859-1?Q?Antoine_L=E9vy-Lambert?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: adding custom tasks without repackaging ant.jar References: <40C62AEB.2020903@sun.com> In-Reply-To: <40C62AEB.2020903@sun.com> X-Enigmail-Version: 0.82.4.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Jane, in ant 1.6, you can do even better and declare your custom tasks with an antlib.xml file. I suggest you read the following : http://ant.apache.org/manual/CoreTypes/antlib.html Otherwise, the task supports an attribute resource, which is the location of a file similar to defaults.properties containing the list of your custom tasks. This was already in ant 1.5, probably also before. Cheers, Antoine Jane Young wrote: > Hi, > > I have some custom tasks I want to add to Ant but I do not want to > update defaults.properties in ant.jar. Is it possible to have my > tasks defined in a separate defaults.properties with the class(es) > packaged in a separate jar and copy it to /lib directory? > > thanks, > jane > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org