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=39694>. 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=39694 Summary: <macrodef>: multiple use of element inside nested <patternset>s fails Product: Ant Version: 1.6.5 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Core tasks AssignedTo: dev@ant.apache.org ReportedBy: [EMAIL PROTECTED] When a <macrodef> has a nested <copy> with two nested <fileset>s each of which referencing the same <element>, Ant fails with: BUILD FAILED /qv/apps/u117424/elements.xml:10: The following error occurred while executing this line: /qv/apps/u117424/elements.xml:20: Missing attribute "name" for a pattern However this should be a legal operation. It appears that the first use of the element is destructive, causing some/all element data to be null upon the second use. e.g. <copy todir="outdir"> <fileset> <myelement/> </fileset> <fileset> <myelement/> <!-- myelement->* == null !! --> </fileset> </copy> The second instance of myelement appears to be nullified by the first. Attached build.xml to follow demonstrating the failure. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]