ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4163] - Taskdef does not check class for extending Task
Date Mon, 15 Oct 2001 19:56:21 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4163>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4163

Taskdef does not check class for extending Task





------- Additional Comments From steve_l@iseran.com  2001-10-15 12:56 -------
One of the reasons taskdef doesnt check is that you dont need to be a subclass 
of Task to be executed, just export a method called execute().

One might argue that we would be better with an interface Taskable which Task 
implemented, and which other classes could also interface if they wished to 
become and ant task. But it doesnt work like that now, and to change things 
runs the risk of breaking existing builds. 

Whether we can provide more informative error messages while still retaining 
the same behaviour as now is something to consider.

Mime
View raw message