From Fotis.Jannidis@lrz.uni-muenchen.de Fri Mar 3 09:31:30 2000 Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 76936 invoked from network); 3 Mar 2000 09:31:30 -0000 Received: from mailrelay1.lrz-muenchen.de (@129.187.254.101) by locus.apache.org with SMTP; 3 Mar 2000 09:31:30 -0000 Received: from [129.187.26.227] by mailout.lrz-muenchen.de with ESMTP for ant-dev@jakarta.apache.org; Fri, 3 Mar 2000 10:31:11 +0100 From: "Fotis Jannidis" To: ant-dev@jakarta.apache.org Date: Fri, 3 Mar 2000 10:35:41 +0100 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: problem with writing a task Priority: normal In-reply-to: <38BF08B2.2DB04ECE@websitewatchers.com> X-mailer: Pegasus Mail for Win32 (v3.12b) Message-Id: X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N >> Fotis > > Hello, > > I have problems to write a task. The example in the doc files doesn't work (it uses two > > variables, 'msg' and 'message'): > > > Even if I set everything to 'message' I get a nullpointerexception thrown by > > org.apache.tools.ant.Project.createTask(Project.java) > Ludovic: > You need to register your task, else ant doesn't know anything about it (it doesn't discover > new tasks automatically...). The command for that is classname="mypackage.MyVeryOwnClass" /> and you need to include it in the init target. > > Note: Add to the TODO list: more human-readable error reporting. Thanks for the answer, bt this can't be the solution. The task was registered. Still hoping to see a working example and learn. Fotis