Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 87601 invoked from network); 19 Apr 2002 02:58:34 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 19 Apr 2002 02:58:34 -0000 Received: (qmail 29197 invoked by uid 97); 19 Apr 2002 02:58:36 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 29167 invoked by uid 97); 19 Apr 2002 02:58:36 -0000 Mailing-List: contact ant-user-help@jakarta.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 ant-user@jakarta.apache.org Received: (qmail 29152 invoked from network); 19 Apr 2002 02:58:35 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Adam Murdoch To: "Ant Users List" Subject: Re: getting null when trying to call custom ant task Date: Fri, 19 Apr 2002 13:01:22 +1000 X-Mailer: KMail [version 1.4] References: <4.3.2-J.20020419013807.024c7f50@mail8.catv.ne.jp> In-Reply-To: <4.3.2-J.20020419013807.024c7f50@mail8.catv.ne.jp> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200204191301.22638.adammurdoch@apache.org> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Fri, 19 Apr 2002 02:43, tek1 wrote: > hello. > > i've written 2 custom ant tasks and am trying to have one (say "ATask") > call the other ("BTask") > > i tried the following in ATask (to reference BTask): > > > someMethod() { > > =09this.project.addDataTypeDefinition("atask",Class.forName("com.test.A= Task") Shouldn't that be project.addTaskDefinition()? > > =09ATask task =3D (ATask)this.project.createTask("atask"); > --=20 Adam -- To unsubscribe, e-mail: For additional commands, e-mail: