Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@jakarta.apache.org Received: (qmail 40717 invoked by uid 500); 15 Oct 2001 19:56:22 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: ant-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 40708 invoked from network); 15 Oct 2001 19:56:22 -0000 Date: 15 Oct 2001 19:56:21 -0000 Message-ID: <20011015195621.17215.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: ant-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 4163] - Taskdef does not check class for extending Task X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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.