ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ludovic Claude>
Subject Re: problem with writing a task
Date Fri, 03 Mar 2000 00:34:58 GMT
Fotis Jannidis wrote:

> 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

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 <taskdef name="mytask"
classname="mypackage.MyVeryOwnClass" /> and you need to include it in the init target.

Note: Add to the TODO list: more human-readable error reporting.


Web Site Watchers Ltd
212 Piccadilly,
London W1V 9LD

Telephone: +44 (0)171 917 6255
Fax: +44 (0)171 439 0262

View raw message