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=3205>.
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=3205

Taskdef does not warn about task name clashes





------- Additional Comments From [EMAIL PROTECTED]  2001-09-23 23:08 -------
Attachment 596 contains patch for this.  In the addTaskDefintion() method of 
Project.java, I check first for the existence of a task by that name in the 
taskClassDefinitions hashtable.  If it exists, I throw a BuildException.

The question remains, however, whether this is the desired behavior.  It makes 
it impossible to override tasks with others of the same name.  This could be 
made conditional on an "override" attribute on the <taskdef> element.

Reply via email to