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 3205] - Taskdef does not warn about task name clashes
Date Mon, 24 Sep 2001 06:08:19 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=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 phanna@ipass.net  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.

Mime
View raw message