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=19897>. 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=19897 Patch to implement the namespaced antlib + other changes ------- Additional Comments From [EMAIL PROTECTED] 2003-08-01 12:11 ------- I have made a patch (7613) implementing namespace support. There are a number of differences from the original: * PH2 does not have the concept of unsupported namespaces * typedef may use any uri except reserved uris which are "ant*" other that "ant:core" and "antlib:*" * I have removed the "ant:polymorphic" namespace as it only contained one attribute ("type") and I think it was confusing. I think that there should be a number of attributes supported in a separate namespace (see the aspect discussion for 1.7 ? url for e-mails on the subject). * handling of an antlib context to resolve definitions in antlibs The changes on a file by file basis is: docs/manual/CoreTasks/typedef.html * describe uri attribute src/main/org/apache/tools/ant/ComponentHelper.java * add handling of namespace * add handling of stack of antlib contexts * add mapping of antlib:<package name> to resource <package name>s:.:/:g/antlib.xml NOTE: some debug println's present src/main/org/apache/tools/ant/ProjectHelper.java * constants for ant:core, and antlib: * method to map uri,name to component name * method to extrace uri from component name src/main/org/apache/tools/ant/UnknownElement.java * set the qualified name of the task * use ComponenetHelper#createComponent src/main/org/apache/tools/ant/helper/AntXMLContext.java * maintain the namespace prefix -> namespace uri during parsing src/main/org/apache/tools/ant/helper/ProjectHelper2.java * map ant:core to "" for namespace uri * use localname instead of qname for attributes * check if "target" and "project" are in the correct namespace * map the ant-type prefix:name value to a uri'ed component name * set the qualified name on a task src/main/org/apache/tools/ant/taskdefs/Antlib.java * add a uri attribute and set it for definitions * inform componenthelper of the start and end of antlib definition * processing src/main/org/apache/tools/ant/taskdefs/Definer.java * add the uri attribute * use the uri attribute to specify the name of the component --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]