DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=29499>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29499 <presetdef> does not appear to work with both URI and nested elements Summary: <presetdef> does not appear to work with both URI and nested elements Product: Ant Version: 1.6.0 Platform: PC OS/Version: Linux Status: NEW Severity: Major Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Reproducible for me in Ant 1.6.0, 1.6.1, and the 1.7 trunk as of a few days ago. It seems that the URI attribute on <presetdef> works as documented if you are only presetting attributes. But if you try to preset nested elements while using a URI, you get an error claiming that the newly defined type does not support the nested element. Presetting a task of a different name with no explicit namespace does not have this problem. Stranger, if you *both* preset using a different name and using a different URI, then try to run both presets, the invocation using the different name works as expected, and the invocation using the different URI fails - but the error message seems to indicate that it is trying to run the other variant! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]